mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:48:14 +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,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';
|
||||
|
Loading…
Reference in New Issue
Block a user