Bug 911216 - Part 5: Add --enable-sm-promise configure flag. r=chmanchester
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 09 Mar 2016 16:09:25 +0900
changeset 289921 672da685c6fc330d9b8d68e3f1db6cb951f34f8d
parent 289920 9c64ec689d29022d8a5e9b876d91e5d901122430
child 289922 17385ac2980201df48efb904afa7da8af547b251
push id30112
push usercbook@mozilla.com
push dateWed, 23 Mar 2016 15:25:32 +0000
treeherdermozilla-central@6202ade0e6d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs911216
milestone48.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 911216 - Part 5: Add --enable-sm-promise configure flag. r=chmanchester
js/moz.configure
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -29,16 +29,27 @@ js_option('--disable-js-shell', default=
        help='Do not build the JS shell')
 
 @depends('--disable-js-shell')
 def js_shell(value):
     if not value:
         set_config('JS_DISABLE_SHELL', '1')
 
 
+# Use SpiderMonkey Promise implementation if it's enabled
+# =======================================================
+js_option('--enable-sm-promise', help='Enable SpiderMonkey promises')
+
+@depends('--enable-sm-promise')
+def sm_promise(value):
+    if value:
+        set_config('SPIDERMONKEY_PROMISE', '1')
+        set_define('SPIDERMONKEY_PROMISE', '1')
+
+
 # SpiderMonkey as a shared library, and how its symbols are exported
 # ==================================================================
 js_option('--disable-shared-js', default=building_js,
           help='Do not create a shared library')
 
 js_option('--disable-export-js', default=building_js,
           help='Do not mark JS symbols as DLL exported/visible')