소스 검색

* fixed {$unitpath xxx} directive with absolute paths

git-svn-id: trunk@45424 -
Jonas Maebe 5 년 전
부모
커밋
8d18c1792e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/scandir.pas

+ 2 - 1
compiler/scandir.pas

@@ -1512,7 +1512,8 @@ unit scandir;
           begin
             current_scanner.skipspace;
             unitpath:=current_scanner.readcomment;
-            if current_module.path<>'' then
+            if (current_module.path<>'') and
+               not path_absolute(unitpath) then
              unitpath:=current_module.path+source_info.DirSep+unitpath;
             current_module.localunitsearchpath.AddPath(unitpath,false);
           end;