]> git.siccegge.de Git - frida/frida.git/commitdiff
Remove -O2 from llvmflags. it's none of libllvm's business
authorChristoph Egger <christoph@anonymous.siccegge.de>
Wed, 19 Nov 2014 15:48:55 +0000 (16:48 +0100)
committerChristoph Egger <christoph@anonymous.siccegge.de>
Wed, 19 Nov 2014 15:48:55 +0000 (16:48 +0100)
CMakeLists.txt

index 0eab70c64b330ce261acdbb5cb9051c02c3084dd..5969d9cdebdab389aa3ce033662b35742bfe65f5 100644 (file)
@@ -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)