mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
IDE/lazbuild: build ide: resolve macros in environment custom options
git-svn-id: trunk@48591 -
This commit is contained in:
parent
765363935f
commit
367eea2eea
@ -565,6 +565,7 @@ var
|
||||
LazDir, TargetLCLPlatform: string;
|
||||
DefaultTargetFilename: String;
|
||||
IsCrossCompiling: Boolean;
|
||||
s: String;
|
||||
begin
|
||||
Result:=mrOk;
|
||||
fOutputDirRedirected:=False;
|
||||
@ -591,10 +592,13 @@ begin
|
||||
AppendExtraOption('-dWIN9XPLATFORM');
|
||||
{$ENDIF}
|
||||
|
||||
AppendExtraOption(fProfile.ExtraOptions,false);
|
||||
|
||||
// append profile and global custom options
|
||||
s:=fProfile.ExtraOptions;
|
||||
if OnAppendCustomOption<>nil then
|
||||
OnAppendCustomOption(Self,fExtraOptions,[bmgtEnvironment]);
|
||||
OnAppendCustomOption(Self,s,[bmgtEnvironment]);
|
||||
|
||||
GlobalMacroList.SubstituteStr(s);
|
||||
AppendExtraOption(s,false);
|
||||
end;
|
||||
|
||||
// set target filename and target directory:
|
||||
|
Loading…
Reference in New Issue
Block a user