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

Commit ebfe33ad authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Remove more problematic env vars

I got a report of a user exporting CDPATH in their shell and causing
strange issues in the build. We should never need this value (and it
probably shouldn't be exported from the shell either -- that was their
workaround).

NDK_ROOT causes issues with Android.mk files thinking that they're
building with the ndk (like external/googletest/googletest/Android.mk).

Bug: 78933670
Test: CDPATH=. NDK_ROOT=test m; check out/soong.log
Change-Id: Icce43d7e31ed5e5e1fb7a4e37fd4dfbf421af4b1
parent 5a2c9d7a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -102,8 +102,10 @@ func NewConfig(ctx Context, args ...string) Config {
		"OUT_DIR_COMMON_BASE",

		// Variables that have caused problems in the past
		"CDPATH",
		"DISPLAY",
		"GREP_OPTIONS",
		"NDK_ROOT",

		// Drop make flags
		"MAKEFLAGS",