summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:47:19 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:47:19 +0000
commit87e673dd513df45b75f6a3b85a65f027a50d5441 (patch)
treed6b9396bb2131783293a3717b8fe22c7c3e2b353
parent2347cfbd25922eda16afd3bbed0f8a94809649f9 (diff)
downloadgcc-87e673dd513df45b75f6a3b85a65f027a50d5441.tar.gz
2007-09-26 Vincent Celier <celier@adacore.com>
* makegpr.adb (Link_Executables): Do not fail when the root project has no sources, but is an extending project. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128809 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ada/makegpr.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/makegpr.adb b/gcc/ada/makegpr.adb
index 954a4d787be..4548916aee3 100644
--- a/gcc/ada/makegpr.adb
+++ b/gcc/ada/makegpr.adb
@@ -3804,8 +3804,9 @@ package body Makegpr is
-- Only Ada sources in the main project, and even maybe not
- if not Data.Langs (Ada_Language_Index) then
-
+ if Data.Extends = No_Project and then
+ not Data.Langs (Ada_Language_Index)
+ then
-- Fail if the main project has no source of any language
Osint.Fail