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] Fix handling of gnatmake -u with library project


Tested on x86-linux, committed on mainline.

When -u is used, no attempt should be made to compile only the
specified sources. However, if a specified source was part of
a library, then all the sources of the library were checked and
compiled if not up to date.
The test consists of one library project file asis_bld.gpr and two
empty package asis.ads and toto.ads. The command
   $ gnatmake -f -u -c -P asis_bld.gpr asis.ads
should only compile asis.ads, never toto.ads.
--
package Toto is
end Toto;
package Asis is
end Asis;
project Asis_Bld is
   for Library_Name use "asis";
   for Library_Dir use "lib";
   for Library_Kind use "static";
end Asis_Bld;

2005-01-03  Vincent Celier  <celier@adacore.com>

	* make.adb (Collect_Arguments_And_Compile): Do not attempt to build
	libraries when Unique_Compile is True (-u switch).
	(Gnatmake): ditto.

Attachment: difs.16
Description: Text document


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