author Nick Alexander <nalexander@mozilla.com>
Thu, 09 May 2019 20:38:48 +0000
changeset 473327 55b7de7850bebd08d85caeb719de711a32f71369
parent 362879 ff64a7889c1fac56d48205fc2fad4eb5aa481a73
child 482068 fa94c9a03e3f019a060d028f61da69af41e3a8ff
permissions -rw-r--r--
Bug 1543982 - Part 1: Avoid re-configuring from within Gradle. r=emilio The inline comment explains what is happening here. The issue is that client.mk is setting MOZ_OBJDIR (and autoconf.mk is setting CC/CXX and others) as part of `mach build`, which means that recursively invoking `mach build` sees a different environment, and that triggers reconfigure. In some situations we can avoid this by recognizing that the environment has changed and setting it back to what it was at the time of `mach build` before client.mk adjusts it. Differential Revision: https://phabricator.services.mozilla.com/D30425

import sys
import gdbpp