Bug 1377007 - Adding a SpiderMonkey compilation flag for BinAST;r?ted draft
authorDavid Teller <dteller@mozilla.com>
Wed, 18 Oct 2017 10:49:47 +0100
changeset 706118 774db547caf1708ea5aaefaec8cccb42c8897049
parent 706008 fed6b20cf2beeb05c4a8f0e49895ab45ce1d1392
child 706119 d32d1f218d6ff445b30c60a15648700f3e057762
push id91725
push userdteller@mozilla.com
push dateFri, 01 Dec 2017 11:07:07 +0000
reviewersted
bugs1377007
milestone59.0a1
Bug 1377007 - Adding a SpiderMonkey compilation flag for BinAST;r?ted MozReview-Commit-ID: qJ6SY8YlQ2
js/moz.configure
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -277,8 +277,22 @@ js_option('--enable-pipeline-operator', 
 
 @depends('--enable-pipeline-operator')
 def enable_pipeline_operator(value):
     if value:
         return True
 
 set_config('ENABLE_PIPELINE_OPERATOR', enable_pipeline_operator)
 set_define('ENABLE_PIPELINE_OPERATOR', enable_pipeline_operator)
+
+
+
+# Experimental support for BinAST
+# ==============================================================
+
+@depends(target, milestone)
+def enable_binast(target, milestone):
+    # For reasons unknown at this time, BinAST causes timeouts on win32.
+    if milestone.is_nightly and not (target.kernel == 'WINNT' and target.cpu == 'x86'):
+        return True
+
+set_define('JS_BUILD_BINAST', enable_binast)
+set_config('JS_BUILD_BINAST', enable_binast)