summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asmjit/tools/configure-sanitizers.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asmjit/tools/configure-sanitizers.sh')
-rw-r--r--3rdparty/asmjit/tools/configure-sanitizers.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/3rdparty/asmjit/tools/configure-sanitizers.sh b/3rdparty/asmjit/tools/configure-sanitizers.sh
index 14a16b4d92a..a9f64969b70 100644
--- a/3rdparty/asmjit/tools/configure-sanitizers.sh
+++ b/3rdparty/asmjit/tools/configure-sanitizers.sh
@@ -1,17 +1,13 @@
#!/bin/sh
-CURRENT_DIR=`pwd`
-BUILD_DIR="build"
+CURRENT_DIR="`pwd`"
+BUILD_DIR="${CURRENT_DIR}/../build"
BUILD_OPTIONS="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DASMJIT_TEST=1"
-echo "** Configuring '${BUILD_DIR}_rel_asan' [Sanitize=Address] **"
-mkdir -p ../${BUILD_DIR}_dbg_asan
-cd ../${BUILD_DIR}_dbg_asan
-eval cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS} -DASMJIT_SANITIZE=address
-cd ${CURRENT_DIR}
+echo "== [Configuring Build - Release_ASAN] =="
+eval cmake "${CURRENT_DIR}/.." -B "${BUILD_DIR}/Release_ASAN" ${BUILD_OPTIONS} -DCMAKE_BUILD_TYPE=Release -DASMJIT_SANITIZE=address
+echo ""
-echo "** Configuring '${BUILD_DIR}_rel_ubsan' [Sanitize=Undefined] **"
-mkdir -p ../${BUILD_DIR}_dbg_ubsan
-cd ../${BUILD_DIR}_dbg_ubsan
-eval cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS} -DASMJIT_SANITIZE=undefined
-cd ${CURRENT_DIR}
+echo "== [Configuring Build - Release_UBSAN] =="
+eval cmake "${CURRENT_DIR}/.." -B "${BUILD_DIR}/Release_UBSAN" ${BUILD_OPTIONS} -DCMAKE_BUILD_TYPE=Release -DASMJIT_SANITIZE=undefined
+echo ""