diff options
author | Matt Turner <mattst88@gmail.com> | 2024-07-29 11:54:15 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2024-08-05 15:42:35 -0400 |
commit | a7e9e2216553750130946776e857f4f7be678d25 (patch) | |
tree | e8b691208aca262e0b3a1991a4f4f62946fddd2d | |
parent | 843e1a45bce308b18adf98d87d3f0765ecb8a15d (diff) |
mesa-debug-asan: Set LD_PRELOAD
-rwxr-xr-x | mesa-debug-asan | 3 | ||||
-rwxr-xr-x | mesa-run | 2 |
2 files changed, 4 insertions, 1 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 "$@" @@ -75,4 +75,4 @@ libdir=$(jq -r '.[] | select(.name == "libdir").value' "${builddir}"/meson-info/ export LD_LIBRARY_PATH="${prefix}/${libdir}:${LD_LIBRARY_PATH}" export LIBGL_DRIVERS_PATH="${prefix}/${libdir}"/dri export VK_ICD_FILENAMES="${prefix}"/share/vulkan/icd.d/"${vk_icd}" -exec "$@" +LD_PRELOAD="${GCC_ASAN_PRELOAD}" exec "$@" |