summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmesa-debug-asan9
-rwxr-xr-xmesa-run2
2 files changed, 10 insertions, 1 deletions
diff --git a/mesa-debug-asan b/mesa-debug-asan
new file mode 100755
index 0000000..151140a
--- /dev/null
+++ b/mesa-debug-asan
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+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
+
+exec mesa-run $@
diff --git a/mesa-run b/mesa-run
index 8ee422a..e59cbf0 100755
--- a/mesa-run
+++ b/mesa-run
@@ -16,8 +16,8 @@ configure)
-Dgallium-drivers=iris
-Dgallium-va=auto
-Dbuildtype="${buildtype}"
- # -Db_sanitize=address,undefined
-Dbackend=ninja
+ "${extra_args}"
"${builddir}"
)
exec meson "${args[@]}"