From 812b97cdfdd4499ec912af07cae873a5eb525e75 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 17 Sep 2018 06:24:39 -0700 Subject: [PATCH] makefile: Make sure that -O0 is only forced for clang/LLVM compiler As discussed in #598 --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 2104f1a1..98b63578 100644 --- a/makefile +++ b/makefile @@ -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