From aa8d72c93f24bd41e846b564a7206a4f2dde2477 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Tue, 4 Feb 2020 09:15:18 -0800 Subject: [PATCH] Add ASAN_SYMBOLIZER_PATH for SANITIZE_HOST=address builds. Bug: http://b/30877494 Test: source build/envsetup.sh && echo $ASAN_SYMBOLIZER_PATH --version Change-Id: I669a5762cc2cea26c0c29f935abde6c14eb0ced7 --- envsetup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 389fbb7d7..793f4b6cf 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -254,6 +254,9 @@ function setpaths() local ANDROID_LLVM_BINUTILS=$(get_abs_build_var ANDROID_CLANG_PREBUILTS)/llvm-binutils-stable ANDROID_BUILD_PATHS=$ANDROID_BUILD_PATHS:$ANDROID_LLVM_BINUTILS + # Set up ASAN_SYMBOLIZER_PATH for SANITIZE_HOST=address builds. + export ASAN_SYMBOLIZER_PATH=$ANDROID_LLVM_BINUTILS/llvm-symbolizer + # If prebuilts/android-emulator// exists, prepend it to our PATH # to ensure that the corresponding 'emulator' binaries are used. case $(uname -s) in