summaryrefslogtreecommitdiff
path: root/mesa-debug-asan
blob: cfd7928595b0142b8c9a58511d659e93f4208c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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:-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 "$@"