Bug 1384449 - Implement the support of when= for js_option r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 26 Jul 2017 10:22:47 +0200
changeset 422179 4093407bd0f0a0b1addfbc124e89bf7ebd2d0f31
parent 422178 b01c620827b9bbe3024d226f9804833a3e856265
child 422180 360af4185a25d3bb4d7bea43f61a24814ec3c7c4
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1384449
milestone56.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 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
@@ -896,14 +896,14 @@ 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)