releasecreator: expand FPCDIR

This commit is contained in:
mattias 2024-01-25 10:26:01 +01:00
parent 8ce20dc954
commit 9a8d7ed2c9

View File

@ -140,8 +140,11 @@ begin
MakeFilename:=GetOption_Executable(' ','make',@GetDefaultMake);
ZipFilename:=GetOption_Executable(' ','zip',@GetDefaultZip);
if FPCSrcDir='' then
if FPCSrcDir='' then begin
FPCSrcDir:=GetEnvironmentVariable('FPCDIR');
if FPCSrcDir<>'' then
FPCSrcDir:=AppendPathDelim(ExpandFileName(FPCSrcDir));
end;
if FPCSrcDir='' then
FPCSrcDir:=SourceDir+'compiler'+PathDelim;