makefile: Make sure that -O0 is only forced for clang/LLVM compiler
As discussed in #598
This commit is contained in:
parent
371e5fe5cc
commit
812b97cdfd
1 changed files with 1 additions and 1 deletions
2
makefile
2
makefile
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue