summaryrefslogtreecommitdiffstats
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 252be1be04f..0e3c85765d5 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -2678,8 +2678,7 @@ package body Make is
-- library only if we can find it.
if RTS_Switch then
- Add_It :=
- Find_File (Sfile, Osint.Source) /= No_File;
+ Add_It := Full_Source_Name (Sfile) /= No_File;
end if;
if Add_It then
@@ -3247,6 +3246,13 @@ package body Make is
Attr => Source_File_Attr'Access);
Lib_File := Osint.Lib_File_Name (Source_File, Source_Index);
+
+ -- ??? This call could be avoided when using projects, since we
+ -- know where the ALI file is supposed to be. That would avoid
+ -- searches in the object directories, including in the runtime
+ -- dir. However, that would require getting access to the
+ -- Source_Id.
+
Osint.Full_Lib_File_Name
(Lib_File,
Lib_File => Full_Lib_File,
OpenPOWER on IntegriCloud