1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-13 15:27:46 +00:00

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:
Mark Pizzolato 2018-08-07 23:24:49 -07:00
parent 5a343cefbb
commit 6dad94c5e5

View File

@ -1042,7 +1042,7 @@ ifneq ($(DEBUG),)
BUILD_FEATURES = - debugging support
else
ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
CFLAGS_O = -O2
CFLAGS_O = -O0
ifeq (Darwin,$(OSTYPE))
NO_LTO = 1
endif