mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:29:09 +02:00
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:
parent
a86cfa9aa0
commit
040ce05360
@ -175,8 +175,13 @@ begin
|
|||||||
CompilerTarget:=StringToCPU(s)
|
CompilerTarget:=StringToCPU(s)
|
||||||
else
|
else
|
||||||
CompilerTarget:=Defaults.CPU;
|
CompilerTarget:=Defaults.CPU;
|
||||||
|
{ Only try to build natively }
|
||||||
if GDBMIOption or GDBMI_Disabled or
|
{ 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.BuildOS=Defaults.OS) and (Defaults.BuildCPU=Defaults.CPU) and
|
||||||
(Defaults.OS in [go32v2,win32,win64,linux,freebsd,os2,emx,beos,haiku])
|
(Defaults.OS in [go32v2,win32,win64,linux,freebsd,os2,emx,beos,haiku])
|
||||||
) then
|
) then
|
||||||
|
Loading…
Reference in New Issue
Block a user