about summary refs log tree commit diff homepage
path: root/scripts
diff options
context:
space:
mode:
authorJulian Büning <julian.buening@comsys.rwth-aachen.de>2020-11-18 19:20:58 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2020-11-20 09:29:43 +0000
commite2f65b57afefa979382062c149fac55eae76e513 (patch)
tree70141b9d6189346a4c1d282d02b6178a17cf1e45 /scripts
parente7fd8c10f03c99a373eb800cf03ba019dc35f81a (diff)
downloadklee-e2f65b57afefa979382062c149fac55eae76e513.tar.gz
p-klee.inc: libc++abi only needed for c++ exception support
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/p-klee.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/p-klee.inc b/scripts/build/p-klee.inc
index 34b73338..7a3d68e7 100644
--- a/scripts/build/p-klee.inc
+++ b/scripts/build/p-klee.inc
@@ -53,10 +53,12 @@ if [ "${USE_LIBCXX}" -eq 1 ]; then
     "-DENABLE_KLEE_LIBCXX=TRUE"
     "-DKLEE_LIBCXX_DIR=${LIBCXX_INSTALL}"
     "-DKLEE_LIBCXX_INCLUDE_DIR=${LIBCXX_INSTALL}/include/c++/v1"
-    "-DKLEE_LIBCXXABI_SRC_DIR=${LIBCXX_SRC}/libcxxabi"
   )
   local LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}"
-  [[ "${LLVM_VERSION_MAJOR}" -ge 8 ]] && CMAKE_ARGUMENTS+=("-DENABLE_KLEE_EH_CXX=TRUE")
+  [[ "${LLVM_VERSION_MAJOR}" -ge 8 ]] && CMAKE_ARGUMENTS+=(
+    "-DENABLE_KLEE_EH_CXX=TRUE"
+    "-DKLEE_LIBCXXABI_SRC_DIR=${LIBCXX_SRC}/libcxxabi"
+  )
 else
   CMAKE_ARGUMENTS+=(
     "-DENABLE_KLEE_LIBCXX=FALSE"