IDE: SearchCompilerCandidates: fixed searching for ppccpu.exe

git-svn-id: trunk@50845 -
This commit is contained in:
mattias 2015-12-16 15:23:50 +00:00
parent 15485be3e7
commit 85b4906f28
2 changed files with 2 additions and 8 deletions

View File

@ -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)

View File

@ -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;