Drop make flags in soong_ui

MAKELEVEL and MAKEFLAGS were are both unset by makeparallel when invoked
from Make. In preparation for removing the Make wrapper (and
makeparallel), strip them in soong_ui as well.

Add MFLAGS for completeness.

Test: m -j
Change-Id: I029f9464d11b432e979b32ede360450f4facb038
This commit is contained in:
Dan Willemsen 2017-07-11 14:30:00 -07:00
parent 091525e15c
commit c40e10bd6b
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ func NewConfig(ctx Context, args ...string) Config {
// Variables that have caused problems in the past
"DISPLAY",
"GREP_OPTIONS",
// Drop make flags
"MAKEFLAGS",
"MAKELEVEL",
"MFLAGS",
)
// Tell python not to spam the source tree with .pyc files.