Commit 67d7b0ab by Vincent Celier Committed by Arnaud Charlet

makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails...

2008-07-31  Vincent Celier  <celier@adacore.com>

	* makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
	return the empty string, instead of raising Constraint_Error.

From-SVN: r138398
parent 9cc98b79
...@@ -246,7 +246,17 @@ package body Makeutl is ...@@ -246,7 +246,17 @@ package body Makeutl is
-- If we get here, the user has typed the executable name with no -- If we get here, the user has typed the executable name with no
-- directory prefix. -- directory prefix.
return Get_Install_Dir (Locate_Exec_On_Path (Exec_Name).all); declare
Path : constant String_Access := Locate_Exec_On_Path (Exec_Name);
begin
if Path = null then
return "";
else
return Get_Install_Dir (Path.all);
end if;
end;
end Executable_Prefix_Path; end Executable_Prefix_Path;
---------- ----------
......
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