mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-10 14:18:17 +02:00
codetools: GetFPCVersion: check if update needed
git-svn-id: trunk@45208 -
This commit is contained in:
parent
922feb68b1
commit
837e4699e5
@ -8511,9 +8511,12 @@ begin
|
|||||||
Result:={$I %FPCVersion%}
|
Result:={$I %FPCVersion%}
|
||||||
else
|
else
|
||||||
Result:='';
|
Result:='';
|
||||||
if not IsFPCExecutable(CompilerFilename,ErrorMsg) then exit;
|
if not IsFPCExecutable(CompilerFilename,ErrorMsg) then
|
||||||
|
exit;
|
||||||
CfgCache:=ConfigCaches.Find(CompilerFilename,ExtraOptions,TargetOS,TargetCPU,true);
|
CfgCache:=ConfigCaches.Find(CompilerFilename,ExtraOptions,TargetOS,TargetCPU,true);
|
||||||
if not CfgCache.Update(TestFilename,ExtraOptions) then exit;
|
if CfgCache.NeedsUpdate
|
||||||
|
and not CfgCache.Update(TestFilename,ExtraOptions) then
|
||||||
|
exit;
|
||||||
if CfgCache.FullVersion='' then exit;
|
if CfgCache.FullVersion='' then exit;
|
||||||
Result:=CfgCache.FullVersion;
|
Result:=CfgCache.FullVersion;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user