Commit 09245ac9 by Vincent Celier Committed by Arnaud Charlet

prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object directories…

prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object directories of projects that have no Ada sources.

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

	* prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
	directories of projects that have no Ada sources.

From-SVN: r103874
parent 6e18b0e5
...@@ -32,7 +32,6 @@ with Prj.Com; use Prj.Com; ...@@ -32,7 +32,6 @@ with Prj.Com; use Prj.Com;
with Tempdir; with Tempdir;
with GNAT.Directory_Operations; use GNAT.Directory_Operations; with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with GNAT.OS_Lib; use GNAT.OS_Lib;
package body Prj.Env is package body Prj.Env is
...@@ -2138,9 +2137,15 @@ package body Prj.Env is ...@@ -2138,9 +2137,15 @@ package body Prj.Env is
end if; end if;
-- For a non-library project, add the object -- For a non-library project, add the object
-- directory, if it is not a virtual project. -- directory, if it is not a virtual project, and
-- if there are Ada sources. If there are no Ada
elsif not Data.Virtual then -- sources, adding the object directory could
-- disrupt the order of the object dirs in the path.
elsif not Data.Virtual
and then In_Tree.Projects.Table
(Project).Ada_Sources_Present
then
Add_To_Object_Path Add_To_Object_Path
(Data.Object_Directory, In_Tree); (Data.Object_Directory, In_Tree);
end if; end if;
......
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