Setting rt optimization on OS X to -O0 when using clang, like we already do with gcc. Tail-call elimination was causing valgrind errors with stack switching. Closes #494.

This commit is contained in:
Eric Holk 2011-06-21 13:13:15 -07:00
parent 34040be580
commit edf73f0512

View File

@ -49,7 +49,7 @@ ifeq ($(CFG_OSTYPE), Darwin)
#
# NB: Currently GCC's optimizer breaks rustrt (task-comm-1 hangs) on Darwin.
CFG_GCC_CFLAGS += -m32 -O0
CFG_CLANG_CFLAGS += -m32 -O2
CFG_CLANG_CFLAGS += -m32 -O0
ifeq ($(CFG_CPUTYPE), x86_64)
CFG_GCCISH_CFLAGS += -arch i386
CFG_GCCISH_LINK_FLAGS += -arch i386