From 8ddb26fdbef40809cacaaa9d7e1329e9b5253fa3 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Fri, 13 May 2016 13:00:16 -0700 Subject: [PATCH] Bug 1272748 Expose --enable-sm-promise config setting in mozinfo.json. r=mshal --- build/docs/mozinfo.rst | 8 ++++++++ python/mozbuild/mozbuild/mozinfo.py | 1 + 2 files changed, 9 insertions(+) diff --git a/build/docs/mozinfo.rst b/build/docs/mozinfo.rst index e98044100dfc..252a83940a1e 100644 --- a/build/docs/mozinfo.rst +++ b/build/docs/mozinfo.rst @@ -136,6 +136,14 @@ release_build Always defined. +sm_promise + Whether spidermonkey promises have been enabled or not. This is set + by adding --enable-sm-promise to the mozconfig file. + + Values are ``true`` and ``false``. + + Always defined. + tests_enabled Whether tests are enabled for this build. diff --git a/python/mozbuild/mozbuild/mozinfo.py b/python/mozbuild/mozbuild/mozinfo.py index cd1868695940..4f40ed7138c6 100755 --- a/python/mozbuild/mozbuild/mozinfo.py +++ b/python/mozbuild/mozbuild/mozinfo.py @@ -95,6 +95,7 @@ def build_dict(config, env=os.environ): d['addon_signing'] = substs.get('MOZ_ADDON_SIGNING') == '1' d['require_signing'] = substs.get('MOZ_REQUIRE_SIGNING') == '1' d['official'] = bool(substs.get('MOZILLA_OFFICIAL')) + d['sm_promise'] = bool(substs.get('SPIDERMONKEY_PROMISE')) def guess_platform(): if d['buildapp'] in ('browser', 'mulet'):