mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 07:09:29 +02:00
* Evaluate macros when getting LocalUnitDir and GlobalUnitDir
git-svn-id: trunk@15168 -
This commit is contained in:
parent
980c353421
commit
d27093ceba
@ -450,8 +450,8 @@ end;
|
||||
|
||||
function TCompilerOptions.LocalUnitDir:string;
|
||||
begin
|
||||
if FLocalInstallDir<>'' then
|
||||
result:=FLocalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim
|
||||
if LocalInstallDir<>'' then
|
||||
result:=LocalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim
|
||||
else
|
||||
result:='';
|
||||
end;
|
||||
@ -459,8 +459,8 @@ end;
|
||||
|
||||
function TCompilerOptions.GlobalUnitDir:string;
|
||||
begin
|
||||
if FGlobalInstallDir<>'' then
|
||||
result:=FGlobalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim
|
||||
if GlobalInstallDir<>'' then
|
||||
result:=GlobalInstallDir+'units'+PathDelim+CompilerTarget+PathDelim
|
||||
else
|
||||
result:='';
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user