diff --git a/ide/buildmanager.pas b/ide/buildmanager.pas index cab6a47778..67a80ea600 100644 --- a/ide/buildmanager.pas +++ b/ide/buildmanager.pas @@ -1417,7 +1417,9 @@ end; function TBuildManager.MacroFuncIDEBuildOptions(const Param: string; const Data: PtrInt; var Abort: boolean): string; begin - if (MiscellaneousOptions<>nil) + if Data=CompilerOptionMacroPlatformIndependent then + Result:='' + else if (MiscellaneousOptions<>nil) and (MiscellaneousOptions.BuildLazOpts<>nil) then Result:=MiscellaneousOptions.BuildLazOpts.ExtraOptions