diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2019-03-12 09:49:14 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2019-03-17 15:43:21 +0000 |
commit | e06ab0db462c1c64bf26f856f4a8448d1ebf199d (patch) | |
tree | a9c54b7c950290fc96e05042089cf29a2ca06fd7 /scripts/build/p-clang-osx.inc | |
parent | 1126134d15a293e0f7fceed881282b78ac8a37ef (diff) | |
download | klee-e06ab0db462c1c64bf26f856f4a8448d1ebf199d.tar.gz |
Generalise clang package detection for linux and mac osx
Diffstat (limited to 'scripts/build/p-clang-osx.inc')
-rw-r--r-- | scripts/build/p-clang-osx.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/p-clang-osx.inc b/scripts/build/p-clang-osx.inc index fde236ca..e3634e5a 100644 --- a/scripts/build/p-clang-osx.inc +++ b/scripts/build/p-clang-osx.inc @@ -11,3 +11,14 @@ is_installed_clang() { LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}" [[ -f "/usr/local/opt/llvm@${LLVM_VERSION_MAJOR}/bin/llvm-config" ]] } + +setup_artifact_variables_clang() { + local LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}" + + BITCODE_CC="/usr/local/opt/llvm@${LLVM_VERSION_MAJOR}/bin/clang" + BITCODE_CXX="/usr/local/opt/llvm@${LLVM_VERSION_MAJOR}/bin/clang++" + + SANITIZER_C_COMPILER="${BITCODE_CC}" + SANITIZER_CXX_COMPILER="${BITCODE_CXX}" + LLVM_CONFIG="/usr/local/opt/llvm@${LLVM_VERSION_MAJOR}/bin/llvm-config" +} \ No newline at end of file |