diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 6ee6f830..5747672c 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -79,12 +79,10 @@ set(COMMON_CC_FLAGS -D__STDC_CONSTANT_MACROS -Wall -Wwrite-strings + -Xclang + -disable-O0-optnone ) -if (${LLVM_VERSION_MAJOR} GREATER 4) - list(APPEND COMMON_CC_FLAGS "-Xclang" "-disable-O0-optnone") -endif () - foreach (_suffix ${LIB_BC_SUFFIX}) list(APPEND "LIB_BC_FLAGS_${_suffix}" ${COMMON_CC_FLAGS}) endforeach () |