summaryrefslogtreecommitdiff
path: root/mesa-debug-asan
diff options
context:
space:
mode:
Diffstat (limited to 'mesa-debug-asan')
-rwxr-xr-xmesa-debug-asan5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesa-debug-asan b/mesa-debug-asan
index 3ff7dce..cfd7928 100755
--- a/mesa-debug-asan
+++ b/mesa-debug-asan
@@ -4,6 +4,9 @@ export cflags="-ggdb3 -O0 -march=native -pipe"
export cxxflags="${cflags}"
export buildtype=debug
export builddir=~/projects/mesa/build-debug-asan
-export extra_args=(-Db_sanitize="address,undefined")
+export extra_args="-Db_sanitize=address,undefined:-Db_lundef=false"
+
+export GCC_ASAN_PRELOAD=$(gcc -print-file-name=libasan.so)
+export CLANG_ASAN_PRELOAD=$(clang -print-file-name=libclang_rt.asan-x86_64.so)
exec mesa-run "$@"