From 76ab6cf24041e2ebfc925452fdb945fec51986ab Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Wed, 6 Apr 2016 12:04:29 -0400 Subject: [PATCH] Bug 1262207 - Add a nightly_build entry to mozinfo. r=ahal --HG-- extra : rebase_source : 5ce90a4c5ac0dd6efe8eeca61a4ec2b90fe9b569 --- build/docs/mozinfo.rst | 7 +++++++ python/mozbuild/mozbuild/mozinfo.py | 1 + 2 files changed, 8 insertions(+) diff --git a/build/docs/mozinfo.rst b/build/docs/mozinfo.rst index 1d09fd55b236..e98044100dfc 100644 --- a/build/docs/mozinfo.rst +++ b/build/docs/mozinfo.rst @@ -98,6 +98,13 @@ mozconfig Optional. +nightly_build + Whether this is a nightly build. + + Values are ``true`` and ``false``. + + Always defined. + os The operating system the build is produced for. Values for tier-1 supported platforms are ``linux``, ``win``, ``mac``, ``b2g``, and diff --git a/python/mozbuild/mozbuild/mozinfo.py b/python/mozbuild/mozbuild/mozinfo.py index 7a7690b7ff11..cd1868695940 100755 --- a/python/mozbuild/mozbuild/mozinfo.py +++ b/python/mozbuild/mozbuild/mozinfo.py @@ -80,6 +80,7 @@ def build_dict(config, env=os.environ): # other CPUs will wind up with unknown bits d['debug'] = substs.get('MOZ_DEBUG') == '1' + d['nightly_build'] = substs.get('NIGHTLY_BUILD') == '1' d['release_build'] = substs.get('RELEASE_BUILD') == '1' d['pgo'] = substs.get('MOZ_PGO') == '1' d['crashreporter'] = bool(substs.get('MOZ_CRASHREPORTER'))