mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
releasecreator: expand FPCDIR
This commit is contained in:
parent
cbdf3c1b63
commit
13aab81070
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user