Skip to content

Commit 942697f

Browse files
make sure Julia doesn't use x87 math. (#43978)
* use fpmath=sse on 32 bit x86 to prevent 80 bit floats causing double rounding Co-authored-by: Oscar Smith <[email protected]>
1 parent d30f403 commit 942697f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Make.inc

+4
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,10 @@ ifneq (,$(filter $(ARCH), powerpc64le ppc64le))
874874
DIST_ARCH:=ppc64le
875875
endif
876876
ifeq (1,$(ISX86))
877+
# on x86 make sure not to use 80 bit math when we want 64 bit math.
878+
ifeq (32,$BINARY))
879+
JCFLAGS += -mfpmath=sse
880+
endif
877881
DIST_ARCH:=$(BINARY)
878882
endif
879883
ifneq (,$(findstring arm,$(ARCH)))

0 commit comments

Comments
 (0)