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:
parent
34040be580
commit
edf73f0512
|
@ -49,7 +49,7 @@ ifeq ($(CFG_OSTYPE), Darwin)
|
||||||
#
|
#
|
||||||
# NB: Currently GCC's optimizer breaks rustrt (task-comm-1 hangs) on Darwin.
|
# NB: Currently GCC's optimizer breaks rustrt (task-comm-1 hangs) on Darwin.
|
||||||
CFG_GCC_CFLAGS += -m32 -O0
|
CFG_GCC_CFLAGS += -m32 -O0
|
||||||
CFG_CLANG_CFLAGS += -m32 -O2
|
CFG_CLANG_CFLAGS += -m32 -O0
|
||||||
ifeq ($(CFG_CPUTYPE), x86_64)
|
ifeq ($(CFG_CPUTYPE), x86_64)
|
||||||
CFG_GCCISH_CFLAGS += -arch i386
|
CFG_GCCISH_CFLAGS += -arch i386
|
||||||
CFG_GCCISH_LINK_FLAGS += -arch i386
|
CFG_GCCISH_LINK_FLAGS += -arch i386
|
||||||
|
|
Loading…
Reference in New Issue