Bug 1272748 Expose --enable-sm-promise config setting in mozinfo.json. r=mshal

This commit is contained in:
Ben Kelly 2016-05-13 13:00:16 -07:00
Родитель f03abf7727
Коммит 8ddb26fdbe
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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'):