ide: fied compile on windows

This commit is contained in:
mattias 2023-06-12 07:09:04 +02:00
parent 4323a6e9f5
commit daf7767a51

View File

@ -139,6 +139,12 @@ function GetValueFromIDEConfig(OptionFilename, Path: string): string;
implementation
{$IFDEF MSWindows}
var
DefaultFPCVersion: string;
DefaultFPCTarget: string;
{$ENDIF}
function CheckLazarusDirectoryQuality(ADirectory: string;
out Note: string): TSDFilenameQuality;
@ -1148,5 +1154,11 @@ begin
Result:=Nil;
end;
initialization
{$IFDEF MSWindows}
DefaultFPCTarget:= GetCompiledTargetCPU + '-' + GetCompiledTargetOS;
DefaultFPCVersion:= {$I %FPCVERSION%};
{$ENDIF}
end.