Merge "Always set ASAN_SYMBOLIZER_PATH appropriately" am: 713e1927df

am: 485d8af39d

Change-Id: I22bdb785d66252ade4b0f22098f5e851c093b736
This commit is contained in:
Dan Willemsen
2019-08-21 20:22:21 -07:00
committed by android-build-merger
2 changed files with 6 additions and 0 deletions

View File

@@ -180,6 +180,11 @@ func NewConfig(ctx Context, args ...string) Config {
ret.environ.Set("TMPDIR", absPath(ctx, ret.TempDir()))
// Always set ASAN_SYMBOLIZER_PATH so that ASAN-based tools can symbolize any crashes
symbolizerPath := filepath.Join("prebuilts/clang/host", ret.HostPrebuiltTag(),
"llvm-binutils-stable/llvm-symbolizer")
ret.environ.Set("ASAN_SYMBOLIZER_PATH", absPath(ctx, symbolizerPath))
// Precondition: the current directory is the top of the source tree
checkTopDir(ctx)

View File

@@ -171,6 +171,7 @@ func runKatiPackage(ctx Context, config Config) {
"TMPDIR",
// Tool configs
"ASAN_SYMBOLIZER_PATH",
"JAVA_HOME",
"PYTHONDONTWRITEBYTECODE",