Bug 1180275 - Part 1: Add a release_build mozinfo variable; r=ted

This commit is contained in:
Ehsan Akhgari 2015-07-03 13:59:00 -04:00
parent 646ce4ee57
commit 7e09aaf6ad
2 changed files with 8 additions and 0 deletions

View File

@ -122,6 +122,13 @@ processor
Always defined. Always defined.
release_build
Whether this is a release build.
Values are ``true`` and ``false``.
Always defined.
tests_enabled tests_enabled
Whether tests are enabled for this build. Whether tests are enabled for this build.

View File

@ -80,6 +80,7 @@ def build_dict(config, env=os.environ):
# other CPUs will wind up with unknown bits # other CPUs will wind up with unknown bits
d['debug'] = substs.get('MOZ_DEBUG') == '1' d['debug'] = substs.get('MOZ_DEBUG') == '1'
d['release_build'] = substs.get('RELEASE_BUILD') == '1'
d['pgo'] = substs.get('MOZ_PGO') == '1' d['pgo'] = substs.get('MOZ_PGO') == '1'
d['crashreporter'] = bool(substs.get('MOZ_CRASHREPORTER')) d['crashreporter'] = bool(substs.get('MOZ_CRASHREPORTER'))
d['datareporting'] = bool(substs.get('MOZ_DATA_REPORTING')) d['datareporting'] = bool(substs.get('MOZ_DATA_REPORTING'))