IDE: fixed leading space in compiler options

git-svn-id: trunk@59897 -
This commit is contained in:
mattias 2018-12-23 15:26:03 +00:00
parent 458181e005
commit 9e8af3629d

View File

@ -957,7 +957,8 @@ begin
inc(EndPos);
end;
if EndPos>StartPos then begin
Result:=Result+' '+Switch+copy(OptionStr,StartPos,EndPos-StartPos);
if Result<>'' then Result:=Result+' ';
Result:=Result+Switch+copy(OptionStr,StartPos,EndPos-StartPos);
end;
StartPos:=EndPos;
end;
@ -2867,6 +2868,7 @@ begin
if ccloAddCompilerPath in Flags then
switches:=ConvertOptionsToCmdLine('',RealCompilerFilename);
//writeln('TBaseCompilerOptions.MakeOptionsString RealCompilerFilename="',RealCompilerFilename,'" switches="',switches,'"');
CurTargetOS:='';
CurTargetCPU:='';