mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 09:27:50 +01:00
IDE: fixed searching in PATH on Windows
git-svn-id: trunk@50865 -
This commit is contained in:
parent
ea1023cb37
commit
7896da19ae
@ -316,7 +316,7 @@ end;
|
||||
function TCodeToolsOptions.FindDefaultCompilerFilename: string;
|
||||
begin
|
||||
Result:=SearchFileInPath(GetDefaultCompilerFilename,'',
|
||||
GetEnvironmentVariableUTF8('PATH'),':',ctsfcDefault);
|
||||
GetEnvironmentVariableUTF8('PATH'),PathSeparator,ctsfcDefault);
|
||||
end;
|
||||
|
||||
procedure TCodeToolsOptions.SaveToXMLConfig(XMLConfig: TXMLConfig;
|
||||
|
||||
@ -486,7 +486,7 @@ begin
|
||||
{$ELSE}
|
||||
Flags:=[sffDontSearchInBasePath];
|
||||
{$ENDIF}
|
||||
Result:=SearchFileInPath(Result,'',LazUTF8.GetEnvironmentVariableUTF8('PATH'),':',Flags);
|
||||
Result:=SearchFileInPath(Result,'',LazUTF8.GetEnvironmentVariableUTF8('PATH'),PathSeparator,Flags);
|
||||
end;
|
||||
// resolve links
|
||||
Result:=GetPhysicalFilename(Result,pfeOriginal);
|
||||
|
||||
@ -276,7 +276,7 @@ begin
|
||||
|
||||
// check if there are several compilers in path
|
||||
CompilerFiles:=SearchAllFilesInPath(GetDefaultCompilerFilename,'',
|
||||
GetEnvironmentVariableUTF8('PATH'),':',[sffDontSearchInBasePath]);
|
||||
GetEnvironmentVariableUTF8('PATH'),PathSeparator,[sffDontSearchInBasePath]);
|
||||
try
|
||||
ResolveLinksInFileList(CompilerFiles,false);
|
||||
RemoveDoubles(CompilerFiles);
|
||||
|
||||
@ -212,7 +212,7 @@ begin
|
||||
Result:=Executable
|
||||
else
|
||||
Result:=SearchFileInPath(Executable,'',
|
||||
GetEnvironmentVariableUTF8('PATH'),':',
|
||||
GetEnvironmentVariableUTF8('PATH'),PathSeparator,
|
||||
[sffDontSearchInBasePath]);
|
||||
Result:=TrimFilename(Result);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user