Bug 1180275 - Part 1: Add a release mozinfo variable; r=ted
☠☠ backed out by 41fd23011c72 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 03 Jul 2015 13:59:00 -0400
changeset 253121 56e9597b125752f45745dc007ee3db6d0a8f82c0
parent 253120 71069116ee281ff10618d78097abb21c8bcba3aa
child 253122 9a048b598b1e665adceba1ba37725def17fc74e0
push id29061
push userryanvm@gmail.com
push dateThu, 16 Jul 2015 18:53:45 +0000
treeherdermozilla-central@a0f4a688433d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1180275
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1180275 - Part 1: Add a release mozinfo variable; r=ted
build/docs/mozinfo.rst
python/mozbuild/mozbuild/mozinfo.py
--- a/build/docs/mozinfo.rst
+++ b/build/docs/mozinfo.rst
@@ -117,16 +117,23 @@ processor
 
    If the value starts with ``arm``, the value is ``arm``.
 
    If the value starts with a string of the form ``i[3-9]86]``, the
    value is ``x86``.
 
    Always defined.
 
+release
+   Whether this is a release build.
+
+   Values are ``true`` and ``false``.
+
+   Always defined.
+
 tests_enabled
    Whether tests are enabled for this build.
 
    Values are ``true`` and ``false``.
 
    Always defined.
 
 toolkit
--- a/python/mozbuild/mozbuild/mozinfo.py
+++ b/python/mozbuild/mozbuild/mozinfo.py
@@ -75,16 +75,17 @@ def build_dict(config, env=os.environ):
     if p in ["x86_64", "ppc64"]:
         d["bits"] = 64
     # hardcoded list of known 32-bit CPUs
     elif p in ["x86", "arm", "ppc"]:
         d["bits"] = 32
     # other CPUs will wind up with unknown bits
 
     d['debug'] = substs.get('MOZ_DEBUG') == '1'
+    d['release'] = substs.get('RELEASE_BUILD') == '1'
     d['pgo'] = substs.get('MOZ_PGO') == '1'
     d['crashreporter'] = bool(substs.get('MOZ_CRASHREPORTER'))
     d['datareporting'] = bool(substs.get('MOZ_DATA_REPORTING'))
     d['healthreport'] = substs.get('MOZ_SERVICES_HEALTHREPORT') == '1'
     d['asan'] = substs.get('MOZ_ASAN') == '1'
     d['tsan'] = substs.get('MOZ_TSAN') == '1'
     d['telemetry'] = substs.get('MOZ_TELEMETRY_REPORTING') == '1'
     d['tests_enabled'] = substs.get('ENABLE_TESTS') == "1"