Bug 1461795 - Use FileAvoidWrite when writing mozinfo.json; r=chmanchester

Since MozbuildObject.from_environment() reads from mozinfo.json, tup
picks up that file as a dependency for anything that imports buildconfig
(eg: all generated files). Using FileAvoidWrite when creating
mozinfo.json will help avoid unnecessary work after re-running configure
in the tup backend.

MozReview-Commit-ID: EEOPQYJA1MV
This commit is contained in:
Mike Shal
2018-05-14 17:30:21 -04:00
parent ef15f9c0f4
commit f4db667457
2 changed files with 3 additions and 5 deletions

View File

@@ -108,7 +108,6 @@ def config_status(config):
# executable permissions.
os.chmod('config.status', 0o755)
if config.get('MOZ_BUILD_APP') != 'js' or config.get('JS_STANDALONE'):
os.environ[b'WRITE_MOZINFO'] = b'1'
from mozbuild.config_status import config_status
# Some values in sanitized_config also have more complex types, such as