Skip to content

Commit 082a0e9

Browse files
committed
Raise an error when calling make with MARCHes known to fail
Pre-SSE2 CPUs are not supported as some tests fail (#7185). Better warn as soon as possible.
1 parent 608fc91 commit 082a0e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Make.inc

+5
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ XC_HOST := $(ARCH)$(shell echo $(BUILD_MACHINE) | sed "s/[^-]*\(.*\)$$/\1/")
451451
MARCH = $(ARCH)
452452
endif
453453

454+
# Detect common pre-SSE2 MARCH values known not to work
455+
ifneq ($(findstring $(MARCH),i386 i486 i586 i686 pentium pentium2 pentium3),)
456+
$(error Pre-SSE2 builds are not supported. To create a generic binary, pass MARCH=pentium4)
457+
endif
458+
454459
ifneq ($(MARCH),)
455460
CC += -march=$(MARCH)
456461
CXX += -march=$(MARCH)

0 commit comments

Comments
 (0)