makefile: Disable optimization on OS X compiling with clang
The VAX simulator is counting on undefined C language behaviors which allow the optimizer to correctly produce unexpected results. Hopefully this will be sufficient until the VAX architecture verifier (AXE) can be found to validate a rewritten simulator. As reported in #598
This commit is contained in:
parent
5a343cefbb
commit
6dad94c5e5
1 changed files with 1 additions and 1 deletions
2
makefile
2
makefile
|
@ -1042,7 +1042,7 @@ ifneq ($(DEBUG),)
|
||||||
BUILD_FEATURES = - debugging support
|
BUILD_FEATURES = - debugging support
|
||||||
else
|
else
|
||||||
ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
|
ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
|
||||||
CFLAGS_O = -O2
|
CFLAGS_O = -O0
|
||||||
ifeq (Darwin,$(OSTYPE))
|
ifeq (Darwin,$(OSTYPE))
|
||||||
NO_LTO = 1
|
NO_LTO = 1
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue