Bug 1476423 - add --enable-cranelift option; r=gps,sunfish
authorNathan Froyd <froydnj@mozilla.com>
Tue, 24 Jul 2018 14:31:45 -0400
changeset 428135 6fcf54117a3b21164e6e769343416d2262991f6e
parent 428134 e59a3967c1e48ed155805fb4e6d3c7a11f778985
child 428136 6d89e0d0f3b16250d643d6a1ff5a8b3d09fc55b8
push id34327
push userarchaeopteryx@coole-files.de
push dateWed, 25 Jul 2018 14:18:02 +0000
treeherdermozilla-central@fa78cd1a6880 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, sunfish
bugs1476423
milestone63.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 1476423 - add --enable-cranelift option; r=gps,sunfish
js/moz.configure
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -470,8 +470,22 @@ set_define('ENABLE_PIPELINE_OPERATOR', e
 def enable_build_binast(target, milestone):
     # For reasons unknown at this time, BinAST causes timeouts on win32
     # and failures on Android.
     if milestone.is_nightly and not (target.kernel == 'WINNT' and target.cpu == 'x86') and not (target.os == 'Android'):
         return True
 
 set_define('JS_BUILD_BINAST', enable_build_binast)
 set_config('JS_BUILD_BINAST', enable_build_binast)
+
+
+# Experimental support for wasm code generation with Cranelift
+# ==============================================================
+js_option('--enable-cranelift',
+          help='Enable Cranelift code generator for wasm')
+
+@depends('--enable-cranelift')
+def enable_cranelift(value):
+    if value:
+        return True
+
+set_config('MOZ_WASM_CRANELIFT', enable_cranelift)
+set_define('MOZ_WASM_CRANELIFT', enable_cranelift)