diff options
author | Vincent Celier <celier@adacore.com> | 2007-09-26 12:47:19 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-09-26 12:47:19 +0200 |
commit | 43943e4035dfaf885484faa9a1f71ec28f4677c9 (patch) | |
tree | d6b9396bb2131783293a3717b8fe22c7c3e2b353 /gcc | |
parent | 7954ad60dfe13b287645778983cb5ede2da8592b (diff) | |
download | gcc-43943e4035dfaf885484faa9a1f71ec28f4677c9.zip gcc-43943e4035dfaf885484faa9a1f71ec28f4677c9.tar.gz gcc-43943e4035dfaf885484faa9a1f71ec28f4677c9.tar.bz2 |
makegpr.adb (Link_Executables): Do not fail when the root project has no sources, but is an extending project.
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.
From-SVN: r128809
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/makegpr.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/makegpr.adb b/gcc/ada/makegpr.adb index 954a4d7..4548916 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 |