summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-02-14 11:57:31 -0800
committerMatt Turner <mattst88@gmail.com>2022-02-14 12:52:38 -0800
commit6c02393b1c7ada0788dec6709b81f9c2cbe0adf3 (patch)
tree3fa397772f8afd7bb75a4295f4de80f823bdf4ab
parent76d0409e332937103f80ee0b8f89e7d47857a413 (diff)
Add mesa-debug-asan configuration
-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[@]}"