with System.OS_Lib; use System.OS_Lib;
with Hostparm;
with Makeutl; use Makeutl;
+with Opt;
with Osint; use Osint;
with Prj.Tree; use Prj.Tree;
with Sdefault;
-- Indicator in the project path to indicate that the default search
-- directories should not be added to the path
- Uninitialized_Prefix : constant String := '#' & Path_Separator;
+ Uninitialized_Prefix : constant String := '#' & Path_Separator;
-- Prefix to indicate that the project path has not been initilized yet.
-- Must be two characters long
begin
if Tree.Project_Path = null then
Tree.Project_Path := new String'(Uninitialized_Prefix & Path);
-
else
Tmp := Tree.Project_Path;
Tree.Project_Path := new String'(Tmp.all & Path_Separator & Path);
end if;
end Add_Search_Project_Directory;
+ -----------
-- Check --
-----------
function Check
(Tree : Prj.Tree.Project_Node_Tree_Ref;
- Declaration : String) return Boolean is
+ Declaration : String) return Boolean
+ is
begin
for Equal_Pos in Declaration'Range loop
if Declaration (Equal_Pos) = '=' then
declare
New_Dir : constant String :=
- Normalize_Pathname (Name_Buffer (First .. Last));
+ Normalize_Pathname
+ (Name_Buffer (First .. Last),
+ Resolve_Links => Opt.Follow_Links_For_Dirs);
begin
-- If the absolute path was resolved and is different from