mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 02:09:21 +02:00
IDE: SearchCompilerCandidates: fixed searching for ppccpu.exe
git-svn-id: trunk@50845 -
This commit is contained in:
parent
15485be3e7
commit
85b4906f28
@ -471,7 +471,7 @@ begin
|
||||
if CheckFile('fpc'+ExeExt,Result) then exit;
|
||||
|
||||
// search ppccpu(.exe) in PATH
|
||||
if CheckFile(GetDefaultCompilerFilename,Result) then exit;
|
||||
if CheckFile(GetDefaultCompilerFilename(GetCompiledTargetCPU),Result) then exit;
|
||||
|
||||
// check history
|
||||
Files:=EnvironmentOptions.CompilerFileHistory;
|
||||
@ -480,7 +480,7 @@ begin
|
||||
if CheckFile(Files[i],Result) then exit;
|
||||
|
||||
// check paths with versions
|
||||
ShortCompFile:=GetDefaultCompilerFilename;
|
||||
ShortCompFile:='fpc'+ExeExt;
|
||||
|
||||
// check $(LazarusDir)\fpc\bin\i386-win32\fpc.exe
|
||||
if CheckFile(SetDirSeparators('$(LazarusDir)/fpc/bin/$(TargetCPU)-$(TargetOS)/')+ShortCompFile,Result)
|
||||
|
@ -92,7 +92,6 @@ procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||
function CreateCompilerTestPascalFilename: string;
|
||||
|
||||
function FindDefaultExecutablePath(const Executable: string): string;
|
||||
function GetDefaultCompilerFilename: string; // e.g. ppc386.exe
|
||||
procedure GetDefaultCompilerFilenames(List: TStrings); // list of standard paths of compiler on various distributions
|
||||
function FindDefaultCompilerPath: string; // full path of GetDefaultCompilerFilename
|
||||
function FindDefaultMakePath: string; // full path of "make"
|
||||
@ -444,11 +443,6 @@ begin
|
||||
Result:=ExtractFilePath(Result)+lowercase(ExtractFileName(Result));
|
||||
end;
|
||||
|
||||
function GetDefaultCompilerFilename: string;
|
||||
begin
|
||||
Result:=DefineTemplates.GetDefaultCompilerFilename;
|
||||
end;
|
||||
|
||||
function GetDefaultLazarusSrcDirectories: TStringList;
|
||||
var
|
||||
i: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user