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 CFLAGS_O = -O0
BUILD_FEATURES = - debugging support BUILD_FEATURES = - debugging support
else else
ifneq (clang,$(findstring clang,$(COMPILER_NAME))) ifneq (,$(findstring clang,$(COMPILER_NAME))$(findstring LLVM,$(COMPILER_NAME)))
CFLAGS_O = -O0 CFLAGS_O = -O0
ifeq (Darwin,$(OSTYPE)) ifeq (Darwin,$(OSTYPE))
NO_LTO = 1 NO_LTO = 1