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

makefile: Make sure that -O0 is only forced for clang/LLVM compiler

As discussed in #598
This commit is contained in:
Mark Pizzolato 2018-09-17 06:24:39 -07:00
parent 371e5fe5cc
commit 812b97cdfd

View File

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