Skip to content

Commit

Permalink
Raise an error for JULIA_CPU_TARGET values known to fail
Browse files Browse the repository at this point in the history
Pre-SSE2 CPUs are not supported as some tests fail (#7185).
Better warn before the build.
  • Loading branch information
nalimilan committed Jun 10, 2015
1 parent 608fc91 commit 5b67e3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ endif

JULIA_CPU_TARGET ?= native

# Detect common pre-SSE2 JULIA_CPU_TARGET values known not to work (#7185)
ifneq ($(findstring $(JULIA_CPU_TARGET),i386 i486 i586 i686 pentium pentium2 pentium3),)
$(error Pre-SSE2 CPU targets not supported. To create a generic 32-bit x86 binary, \
pass 'MARCH=i386 JULIA_CPU_TARGET=pentium4', or 'MARCH=pentium4' if not building any dependencies.)
endif

# We map amd64 to x86_64 for compatibility with systems that identify 64-bit systems as such
ifeq ($(ARCH),amd64)
override ARCH = x86_64
Expand Down

0 comments on commit 5b67e3c

Please sign in to comment.