Skip to content

Commit edf73f0

Browse files
author
Eric Holk
committed
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.
1 parent 34040be commit edf73f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/platform.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ifeq ($(CFG_OSTYPE), Darwin)
4949
#
5050
# NB: Currently GCC's optimizer breaks rustrt (task-comm-1 hangs) on Darwin.
5151
CFG_GCC_CFLAGS += -m32 -O0
52-
CFG_CLANG_CFLAGS += -m32 -O2
52+
CFG_CLANG_CFLAGS += -m32 -O0
5353
ifeq ($(CFG_CPUTYPE), x86_64)
5454
CFG_GCCISH_CFLAGS += -arch i386
5555
CFG_GCCISH_LINK_FLAGS += -arch i386

0 commit comments

Comments
 (0)