Allow compilation of i8086, i386 and x86_64 cross-compiler

if -dFPC_SOFT_FPUX80 option is used

  Partial cherry pick from 85d19af48c
This commit is contained in:
Pierre Muller 2023-10-04 04:06:10 -05:00
parent 82c57e2deb
commit 2c23160571
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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