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); inc(EndPos);
end; end;
if EndPos>StartPos then begin 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; end;
StartPos:=EndPos; StartPos:=EndPos;
end; end;
@ -2867,6 +2868,7 @@ begin
if ccloAddCompilerPath in Flags then if ccloAddCompilerPath in Flags then
switches:=ConvertOptionsToCmdLine('',RealCompilerFilename); switches:=ConvertOptionsToCmdLine('',RealCompilerFilename);
//writeln('TBaseCompilerOptions.MakeOptionsString RealCompilerFilename="',RealCompilerFilename,'" switches="',switches,'"');
CurTargetOS:=''; CurTargetOS:='';
CurTargetCPU:=''; CurTargetCPU:='';