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] |
When a GNAT tool such as gnatmake is called with --subdirs=, the actual directories (except source directories) are subdirectories of the specified (or default) directories. If these subdirectories do not exist they are created automatically. However, this should not happen in externally built projects. This patch removes the creation of subdirs in externally built directories: if the subdir does not exist, then the specified (or default) directory is used. The test for this is to invoke gnatmake with --subdirs= and a project file that imports an externally built project: the subdirs should not be created for the externally built project. Tested on x86_64-pc-linux-gnu, committed on trunk 2009-04-15 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Locate_Directory): New Boolean parameter Externally_Built indicating if the project is externally built. If it is, and --subdirs is specified, but the subdir does not exist, look for the specified directory, without the subdir.
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] |