Sfoglia il codice sorgente

Allow compilation of i8086, i386 and x86_64 cross-compiler
if -dFPC_SOFT_FPUX80 option is used

Partial cherry pick from 85d19af48c0

Pierre Muller 1 anno fa
parent
commit
2c23160571
2 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 2 0
      compiler/Makefile
  2. 2 0
      compiler/Makefile.fpc

+ 2 - 0
compiler/Makefile

@@ -4454,12 +4454,14 @@ extcycle:
 	$(MAKE) cycle OPT="$(OPT) -n -OG2p3 -glttt -CRriot -dEXTDEBUG" ALLOW_WARNINGS=1
 cvstest:
 	$(MAKE) cycle 'LOCALOPT=-n -Se' 'RTLOPT=-n -Se'
+ifeq ($(findstring -dFPC_SOFT_FPUX80,$(LOCALOPT)),)
 ifeq ($(OS_SOURCE),win64)
   EXCLUDE_80BIT_TARGETS=1
 endif
 ifneq ($(findstring $(CPU_SOURCE),aarch64 arm avr jvm m68k mips mipsel powerpc powerpc64 sparc sparc64),)
   EXCLUDE_80BIT_TARGETS=1
 endif
+endif
 full: fullcycle
 fullcycle:
 	$(MAKE) cycle

+ 2 - 0
compiler/Makefile.fpc

@@ -870,6 +870,7 @@ cvstest:
 # This is also the case for other CPUs that don't support
 # 80bit real type.
 
+ifeq ($(findstring -dFPC_SOFT_FPUX80,$(LOCALOPT)),)
 ifeq ($(OS_SOURCE),win64)
   EXCLUDE_80BIT_TARGETS=1
 endif
@@ -877,6 +878,7 @@ endif
 ifneq ($(findstring $(CPU_SOURCE),aarch64 arm avr jvm m68k mips mipsel powerpc powerpc64 sparc sparc64),)
   EXCLUDE_80BIT_TARGETS=1
 endif
+endif
 
 full: fullcycle