1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

makefile: Fix -fwhole-program warnings on OS X with newest Xcode

This commit is contained in:
Mark Pizzolato
2016-03-25 17:26:30 -07:00
parent d2269f8bd5
commit fb9e0ac354

View File

@@ -809,6 +809,9 @@ ifneq ($(DEBUG),)
else
ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
CFLAGS_O = -O2
ifeq (Darwin,$(OSTYPE))
NO_LTO = 1
endif
else
ifeq (Darwin,$(OSTYPE))
CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program