ide: fixed compile on windows

This commit is contained in:
mattias 2023-06-12 07:12:53 +02:00
parent daf7767a51
commit d9a0b39c50

View File

@ -143,6 +143,7 @@ implementation
var
DefaultFPCVersion: string;
DefaultFPCTarget: string;
DefaultDrive: string;
{$ENDIF}
function CheckLazarusDirectoryQuality(ADirectory: string;
@ -1158,6 +1159,7 @@ initialization
{$IFDEF MSWindows}
DefaultFPCTarget:= GetCompiledTargetCPU + '-' + GetCompiledTargetOS;
DefaultFPCVersion:= {$I %FPCVERSION%};
DefaultDrive := ExtractFileDrive(ProgramDirectory);
{$ENDIF}
end.