Bug 1501712 - Write .mozconfig.json when running |./mach configure| r=firefox-build-system-reviewers,mshal
authorChris Manchester <cmanchester@mozilla.com>
Wed, 24 Oct 2018 20:03:57 +0000
changeset 491214 097e18992eba03edc88a757380d81b807735a30d
parent 491213 75f3767b6b4371e4901fd6d4f8d9714ecebe2757
child 491215 4a209d2b46acc350cc061751172ffd0ed3174836
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersfirefox-build-system-reviewers, mshal
bugs1501712
milestone65.0a1
Bug 1501712 - Write .mozconfig.json when running |./mach configure| r=firefox-build-system-reviewers,mshal Differential Revision: https://phabricator.services.mozilla.com/D9675
python/mozbuild/mozbuild/controller/building.py
--- a/python/mozbuild/mozbuild/controller/building.py
+++ b/python/mozbuild/mozbuild/controller/building.py
@@ -1326,16 +1326,17 @@ class BuildDriver(MozbuildObject):
 
         return status
 
     def configure(self, options=None, buildstatus_messages=False,
                   line_handler=None):
         # Disable indexing in objdir because it is not necessary and can slow
         # down builds.
         mkdir(self.topobjdir, not_indexed=True)
+        self._write_mozconfig_json()
 
         def on_line(line):
             self.log(logging.INFO, 'build_output', {'line': line}, '{line}')
 
         line_handler = line_handler or on_line
 
         options = ' '.join(shell_quote(o) for o in options or ())
         append_env = {b'CONFIGURE_ARGS': options.encode('utf-8')}