summaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 15:39:36 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 15:39:36 +0000
commit87cbc78338b17f2f848873df2650253171b48cd1 (patch)
tree70f6049e037b61971d1381c8f0d1eb1d33ebecdf /gcc/ada/make.adb
parente2a0b3b102c9b394e8b04020067aa2b6bb0038e0 (diff)
downloadgcc-87cbc78338b17f2f848873df2650253171b48cd1.tar.gz
* make.adb (Collect_Arguments_And_Compile): Do not attempt to build
libraries when Unique_Compile is True (-u switch). (Gnatmake): ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 7d9be713f8c..eb57773fe89 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -2224,7 +2224,9 @@ package body Make is
if not Projects.Table (Arguments_Project).Externally_Built then
Prj.Env.Set_Ada_Paths (Arguments_Project, True);
- if MLib.Tgt.Support_For_Libraries /= MLib.Tgt.None then
+ if not Unique_Compile
+ and then MLib.Tgt.Support_For_Libraries /= MLib.Tgt.None
+ then
declare
The_Data : Project_Data :=
Projects.Table (Arguments_Project);
@@ -4352,7 +4354,9 @@ package body Make is
-- put all the project sources in the queue, and flag the project
-- so that the library is generated.
- if MLib.Tgt.Support_For_Libraries /= MLib.Tgt.None then
+ if not Unique_Compile
+ and then MLib.Tgt.Support_For_Libraries /= MLib.Tgt.None
+ then
for Proj in Projects.First .. Projects.Last loop
if Projects.Table (Proj).Library then
Projects.Table (Proj).Need_To_Build_Lib :=