mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 02:40:54 +02:00
codetools: FindRealCompilerInPath: check for -V
git-svn-id: trunk@44010 -
This commit is contained in:
parent
eb24b12d7a
commit
b60cc2650c
@ -7571,11 +7571,17 @@ var
|
||||
Postfix: String;
|
||||
begin
|
||||
Result:='';
|
||||
|
||||
CompiledTargetCPU:=GetCompiledTargetCPU;
|
||||
if aTargetCPU='' then
|
||||
aTargetCPU:=CompiledTargetCPU;
|
||||
Cross:=aTargetCPU<>CompiledTargetCPU;
|
||||
|
||||
// The -V<postfix> parameter searches for ppcx64-postfix instead of ppcx64
|
||||
Postfix:=GetLastFPCParameter(CompilerOptions,'-V');
|
||||
if Postfix<>'' then
|
||||
Postfix:='-'+Postfix;
|
||||
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,Cross)+Postfix);
|
||||
if (Result='') and Cross then begin
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,false)+Postfix);
|
||||
|
Loading…
Reference in New Issue
Block a user