Fix error in condition to compile IDE package for cross-compilation, should solve bug report 33174

git-svn-id: trunk@38244 -
This commit is contained in:
pierre 2018-02-15 13:12:20 +00:00
parent a86cfa9aa0
commit 040ce05360

View File

@ -175,11 +175,16 @@ begin
CompilerTarget:=StringToCPU(s)
else
CompilerTarget:=Defaults.CPU;
if GDBMIOption or GDBMI_Disabled or
( (Defaults.BuildOS=Defaults.OS) and (Defaults.BuildCPU=Defaults.CPU) and
{ Only try to build natively }
{ or for cross-compile if the resulting executable
does not depend on C libs }
if ((GDBMIOption or NoGDBOption) and
((Defaults.BuildOS=Defaults.OS) and (Defaults.BuildCPU=Defaults.CPU)
or (Defaults.OS in [go32v2,win32,win64,linux,freebsd]))) or
{ This is the list of native targets that can be compiled natively with gdbint packages }
((Defaults.BuildOS=Defaults.OS) and (Defaults.BuildCPU=Defaults.CPU) and
(Defaults.OS in [go32v2,win32,win64,linux,freebsd,os2,emx,beos,haiku])
) then
) then
begin
P:=AddPackage('ide');
P.Version:='3.1.1';