Commit 43943e40 by Vincent Celier Committed by Arnaud Charlet

makegpr.adb (Link_Executables): Do not fail when the root project has no…

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
parent 7954ad60
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment