summaryrefslogtreecommitdiff
path: root/mesa-debug-asan
diff options
context:
space:
mode:
Diffstat (limited to 'mesa-debug-asan')
-rwxr-xr-xmesa-debug-asan3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesa-debug-asan b/mesa-debug-asan
index 56545b7..d38921a 100755
--- a/mesa-debug-asan
+++ b/mesa-debug-asan
@@ -6,4 +6,7 @@ export buildtype=debug
export builddir=~/projects/mesa/build-debug-asan
export extra_args=-Db_sanitize="address,undefined"
+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 "$@"