about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorAdrian Herrera <adrian.herrera@epfl.ch>2016-11-17 10:39:17 +0100
committerDan Liew <delcypher@gmail.com>2016-11-17 12:29:10 +0000
commit82ab37990126ac9501d5775c2257ae4314986016 (patch)
treeb9129b899f69a7821b2993908847ba2d6db2a5c7 /tools
parente853f0bceeb7099acc3df16e52a3cfd1dabad422 (diff)
downloadklee-82ab37990126ac9501d5775c2257ae4314986016.tar.gz
[cmake] Build with newer JIT (for LLVM >= 3.6)
Links in the correct LLVM libraries when using the MCJIT. No effect for LLVM
versions less than 3.6
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/klee/CMakeLists.txt b/tools/klee/CMakeLists.txt
index b6e907ab..1f9fe63f 100644
--- a/tools/klee/CMakeLists.txt
+++ b/tools/klee/CMakeLists.txt
@@ -15,13 +15,18 @@ add_executable(klee
 set(LLVM_COMPONENTS
 	bitreader
 	bitwriter
-	engine
 	ipo
-	jit
 	linker
 	support
 )
 
+if ("${LLVM_PACKAGE_VERSION}" VERSION_EQUAL "3.6" OR
+    "${LLVM_PACKAGE_VERSION}" VERSION_GREATER "3.6")
+  list(APPEND LLVM_COMPONENTS mcjit executionengine native)
+else()
+  list(APPEND LLVM_COMPONENTS jit engine)
+endif()
+
 if ("${LLVM_PACKAGE_VERSION}" VERSION_EQUAL "3.3" OR
     "${LLVM_PACKAGE_VERSION}" VERSION_GREATER "3.3")
   list(APPEND LLVM_COMPONENTS irreader)