Commit a11683dd authored by rtoy's avatar rtoy
Browse files

If either FEATURE_X87 or FEATURE_SSE2 is set, build the C code with

SSE2 support so that the binary will work with either.  This means we
can do the x87 and sse2 builds in either order.  (I think).
parent fe254aa1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -18,10 +18,17 @@ GENCGC = -DGENCGC
GC_SRC = gencgc.c
endif

# Enable support for SSE2
# Enable support for SSE2.  If FEATURE_X87 is set, we want SSE2
# support in the C code too so that the same binary is built in both
# cases.  If neither is set, then we don't want any SSE2 support at
# all.
ifdef FEATURE_X87
SSE2 = -DFEATURE_SSE2
else
ifdef FEATURE_SSE2
SSE2 = -DFEATURE_SSE2
endif
endif

RUNTIME = -Di386 $(GENCGC) $(LINKAGE) $(SSE2)
# __NO_CTYPE so builds on glibc 2.3 will run on (some) older glibc's.