about summary refs log tree commit diff homepage
path: root/runtime
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2021-12-15 16:38:21 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2022-03-17 22:59:26 +0000
commit0f45ab7a5008bd5e68201449bd1e0a999f999457 (patch)
tree585d30a6d2cd9c2ee6c31240a86d034f10d564bb /runtime
parentd8553f3cec042b5af9e21c268cb14ee8f7b30083 (diff)
downloadklee-0f45ab7a5008bd5e68201449bd1e0a999f999457.tar.gz
remove LLVM < 6 from build/test scripts
Diffstat (limited to 'runtime')
-rw-r--r--runtime/CMakeLists.txt6
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 ()