Skip to content
Snippets Groups Projects
Commit 86f6dccd authored by Raymond Toy's avatar Raymond Toy
Browse files

Add comments about using clang instead of gcc on x86.

parent 0d6f2034
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,24 @@ ifdef FEATURE_UNICODE ...@@ -45,7 +45,24 @@ ifdef FEATURE_UNICODE
CPP_DEFINE_OPTIONS += -DUNICODE CPP_DEFINE_OPTIONS += -DUNICODE
endif endif
# Default to using gcc
CC = gcc CC = gcc
# But we can use clang.
#
# However, clang seems to want to use SSE instructions in various
# places, but we DON'T want that because we need a lisp that will run
# on chips without sse.
#
# But on Mac, every machine has SSE2 so we can use SSE2. However,
# there's some code path through GC or allocation where we aren't
# saving the FPU state so after GC or allocation, some XMM FP
# registers are corrupted.
#
# Got that?
#CC = clang -mno-sse
LD = ld LD = ld
ifeq ($(filter 2% 3%, $(shell $(CC) -dumpversion)),) ifeq ($(filter 2% 3%, $(shell $(CC) -dumpversion)),)
...@@ -70,3 +87,7 @@ DEPEND_FLAGS = ...@@ -70,3 +87,7 @@ DEPEND_FLAGS =
# -ffloat-store and -fno-strict-aliasing anymore. # -ffloat-store and -fno-strict-aliasing anymore.
e_rem_pio2.o : e_rem_pio2.c e_rem_pio2.o : e_rem_pio2.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
#
gencgc.o : gencgc.c
$(CC) -c -mno-sse $(CFLAGS) $(CPPFLAGS) $<
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment