IDE: pass compiler options -T and -P if set, even if they are the same as the IDE default

git-svn-id: trunk@34561 -
This commit is contained in:
mattias 2012-01-03 16:27:40 +00:00
parent c90655c252
commit 4838f5a1bc

View File

@ -2647,11 +2647,13 @@ begin
begin
{ Target OS }
CurTargetOS:=GetFPCTargetOS(Vars.Values['TargetOS']);
if (CurTargetOS<>'') and (CurTargetOS<>GetDefaultTargetOS) then
if (CurTargetOS<>'')
and ((TargetOS<>'') or (CurTargetOS<>GetDefaultTargetOS)) then
switches := switches + ' -T' + CurTargetOS;
{ Target CPU }
CurTargetCPU:=GetFPCTargetCPU(Vars.Values['TargetCPU']);
if (CurTargetCPU<>'') and (CurTargetCPU<>GetDefaultTargetCPU) then
if (CurTargetCPU<>'')
and ((TargetCPU<>'') or (CurTargetCPU<>GetDefaultTargetCPU)) then
switches := switches + ' -P' + CurTargetCPU;
end;
end;