This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Create object/exec dirs before looking for source dirs


There are case when a non existent object/exec directory is also declared
as a source directory. When the builder is called with
--create-missing-dirs (-p), this source directory should be found. This
patch ensures that it does. The test for this is to have a non existent
object directory also declared as a source directory, and to call
gnatmake with --create-missing-dirs: there should be no error
"... is not a valid directory".

Tested on x86_64-pc-linux-gnu, committed on trunk

2009-04-17  Vincent Celier  <celier@adacore.com>

	* prj-nmsc.adb (Get_Directories): Get the object and exec directory
	before looking for source directories, but make sure that there are nil
	if they are not explicitely declared and there is explicitely no
	sources in the project.

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]