releasecreator: expand FPCDIR

This commit is contained in:
mattias 2024-01-25 10:26:01 +01:00
parent cbdf3c1b63
commit 13aab81070

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;