mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 03:39:18 +02:00
codetools: fpc unit paths setdirseparator
git-svn-id: trunk@26866 -
This commit is contained in:
parent
d9c85f22a8
commit
6d3739d9ba
@ -1389,7 +1389,7 @@ function ParseFPCVerbose(List: TStrings; out ConfigFiles: TSTrings;
|
|||||||
'U':
|
'U':
|
||||||
if (StrLComp(@UpLine[CurPos], 'USING UNIT PATH: ', 17) = 0) then begin
|
if (StrLComp(@UpLine[CurPos], 'USING UNIT PATH: ', 17) = 0) then begin
|
||||||
Inc(CurPos, 17);
|
Inc(CurPos, 17);
|
||||||
NewPath:=copy(Line,CurPos,len);
|
NewPath:=SetDirSeparators(copy(Line,CurPos,len));
|
||||||
if not FilenameIsAbsolute(NewPath) then
|
if not FilenameIsAbsolute(NewPath) then
|
||||||
NewPath:=ExpandFileNameUTF8(AnsiToUtf8(NewPath));
|
NewPath:=ExpandFileNameUTF8(AnsiToUtf8(NewPath));
|
||||||
NewPath:=ChompPathDelim(TrimFilename(NewPath));
|
NewPath:=ChompPathDelim(TrimFilename(NewPath));
|
||||||
@ -1403,7 +1403,7 @@ function ParseFPCVerbose(List: TStrings; out ConfigFiles: TSTrings;
|
|||||||
begin
|
begin
|
||||||
// skip keywords
|
// skip keywords
|
||||||
Inc(CurPos, 19);
|
Inc(CurPos, 19);
|
||||||
Filename:=copy(Line,CurPos,length(Line));
|
Filename:=SetDirSeparators(copy(Line,CurPos,length(Line)));
|
||||||
ConfigFiles.Add('-'+Filename);
|
ConfigFiles.Add('-'+Filename);
|
||||||
end else if StrLComp(@UpLine[CurPos], 'COMPILER: ', 10) = 0 then begin
|
end else if StrLComp(@UpLine[CurPos], 'COMPILER: ', 10) = 0 then begin
|
||||||
// skip keywords
|
// skip keywords
|
||||||
@ -1415,7 +1415,7 @@ function ParseFPCVerbose(List: TStrings; out ConfigFiles: TSTrings;
|
|||||||
begin
|
begin
|
||||||
// skip keywords
|
// skip keywords
|
||||||
Inc(CurPos, 26);
|
Inc(CurPos, 26);
|
||||||
Filename:=copy(Line,CurPos,length(Line));
|
Filename:=SetDirSeparators(copy(Line,CurPos,length(Line)));
|
||||||
if (ConfigFiles.Count>0)
|
if (ConfigFiles.Count>0)
|
||||||
and (ConfigFiles[ConfigFiles.Count-1]='-'+Filename) then
|
and (ConfigFiles[ConfigFiles.Count-1]='-'+Filename) then
|
||||||
ConfigFiles.Delete(ConfigFiles.Count-1);
|
ConfigFiles.Delete(ConfigFiles.Count-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user