From 61bae46e3098ddb3948fd587f5281362bf028d58 Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 21 Mar 2012 22:28:44 +0000 Subject: [PATCH] lazbuild: fixed append --build-ide options git-svn-id: trunk@36195 - --- ide/lazbuild.lpr | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ide/lazbuild.lpr b/ide/lazbuild.lpr index 465a9532a9..454fece00d 100644 --- a/ide/lazbuild.lpr +++ b/ide/lazbuild.lpr @@ -406,6 +406,7 @@ var InheritedOptionStrings: TInheritedCompOptsStrings; TargetDir: String; i: Integer; + s: String; begin Result:=false; Init; @@ -447,9 +448,11 @@ begin CurProf.TargetPlatform:=GetDefaultLCLWidgetType; if BuildIDEOptions<>'' then begin - if CurProf.ExtraOptions<>'' then - CurProf.ExtraOptions:=CurProf.ExtraOptions+' '; - CurProf.ExtraOptions:=CurProf.ExtraOptions+BuildIDEOptions; + s:=CurProf.ExtraOptions; + if s<>'' then + s+=' '; + s+=BuildIDEOptions; + CurProf.ExtraOptions:=s; end; if BuildAll then CurProf.IdeBuildMode:=bmCleanAllBuild;