Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 352d8a4c authored by Dan Willemsen's avatar Dan Willemsen Committed by android-build-merger
Browse files

Merge "Always set ASAN_SYMBOLIZER_PATH appropriately" am: 713e1927 am: 485d8af3

am: 0fe01f5b

Change-Id: Ib708593f926c4f2308eb1893df0f3e3f3266764d
parents 85bf88e4 0fe01f5b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)

+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ func runKatiPackage(ctx Context, config Config) {
			"TMPDIR",

			// Tool configs
			"ASAN_SYMBOLIZER_PATH",
			"JAVA_HOME",
			"PYTHONDONTWRITEBYTECODE",