Bug 1384449 - Implement the support of when= for js_option r?glandium draft
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 26 Jul 2017 10:22:47 +0200
changeset 615741 325791de42dc3aa84ddd9501f1cdff16eb69bf37
parent 615715 6f1188264e320723569db43d2d72d61e58ae1b75
child 639260 88d5b84460b8a1acde49a5b61482f93cfe86e1e2
push id70453
push userbmo:sledru@mozilla.com
push dateWed, 26 Jul 2017 09:08:56 +0000
reviewersglandium
bugs1384449
milestone56.0a1
Bug 1384449 - Implement the support of when= for js_option r?glandium MozReview-Commit-ID: Eg4klzaCaAH
build/moz.configure/init.configure
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -898,17 +898,17 @@ set_config('MOZ_CONFIGURE_OPTIONS', all_
 
 # This is temporary until js/src/configure and configure are merged.
 # Use instead of option() in js/moz.configure and more generally, for
 # options that are shared between configure and js/src/configure.
 @template
 def js_option(*args, **kwargs):
     opt = option(*args, **kwargs)
 
-    @depends(opt.option, build_project)
+    @depends(opt.option, build_project, when=kwargs.get('when'))
     def js_option(value, build_project):
         if build_project != 'js':
             return value.format(opt.option)
 
     add_old_configure_arg(js_option)
 
 
 # Bug 1278542: This function is a workaround to resolve