From 6c02393b1c7ada0788dec6709b81f9c2cbe0adf3 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 14 Feb 2022 11:57:31 -0800 Subject: Add mesa-debug-asan configuration --- mesa-debug-asan | 9 +++++++++ mesa-run | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 mesa-debug-asan 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[@]}" -- cgit v1.2.3