mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 06:42:40 +02:00
codetools: FindRealCompilerInPath: check for -V
git-svn-id: trunk@44009 -
This commit is contained in:
parent
37f6992f26
commit
eb24b12d7a
@ -7568,15 +7568,17 @@ function TFPCTargetConfigCache.FindRealCompilerInPath(aTargetCPU: string;
|
||||
var
|
||||
CompiledTargetCPU: String;
|
||||
Cross: Boolean;
|
||||
Postfix: String;
|
||||
begin
|
||||
Result:='';
|
||||
CompiledTargetCPU:=GetCompiledTargetCPU;
|
||||
if aTargetCPU='' then
|
||||
aTargetCPU:=CompiledTargetCPU;
|
||||
Cross:=aTargetCPU<>CompiledTargetCPU;
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,Cross));
|
||||
Postfix:=GetLastFPCParameter(CompilerOptions,'-V');
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,Cross)+Postfix);
|
||||
if (Result='') and Cross then begin
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,false));
|
||||
Result:=Search(GetDefaultCompilerFilename(aTargetCPU,false)+Postfix);
|
||||
if Result='' then exit;
|
||||
end;
|
||||
if ResolveLinks then
|
||||
|
Loading…
Reference in New Issue
Block a user