From f599dfc8d14e90bbd2a2946c107cfeebc901184a Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 19 Nov 2014 16:48:55 +0100 Subject: [PATCH] Remove -O2 from llvmflags. it's none of libllvm's business --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0eab70c..5969d9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ execute_process(COMMAND ${LLVM_CONFIG} --cxxflags OUTPUT_VARIABLE LLVM_CFLAGS O execute_process(COMMAND ${LLVM_CONFIG} --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${LLVM_CONFIG} --libs OUTPUT_VARIABLE LLVM_LIBS OUTPUT_STRIP_TRAILING_WHITESPACE) +string(REPLACE -O2 '' LLVM_CFLAGS ${LLVM_CFLAGS}) + separate_arguments(LLVM_CFLAGS) add_definitions(${LLVM_CFLAGS}) add_definitions(-std=c++11 -Wall) -- 2.39.5