Bug 1319484 - Add MOZ_STYLO to build config; r?ted draft
authorGregory Szorc <gps@mozilla.com>
Tue, 22 Nov 2016 10:23:19 -0800
changeset 442544 e240b317879f1611f47644b8f39610c592fde7d0
parent 442068 0534254e9a40b4bade2577c631fe4cfa0b5db41d
child 442545 f7759cc7567abb46ae3b7abae1e9ba39778bf2f9
push id36725
push userbmo:gps@mozilla.com
push dateTue, 22 Nov 2016 18:30:36 +0000
reviewersted
bugs1319484
milestone53.0a1
Bug 1319484 - Add MOZ_STYLO to build config; r?ted Previously, we recorded it in defines. Let's add it in substs so more tools can key off it. MozReview-Commit-ID: HDrf46BCd6W
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -564,16 +564,17 @@ option('--enable-stylo', env='STYLO_ENAB
             'This requires either building servo within Gecko\'s cargo phase '
             'or passing --with-servo')
 
 @depends('--enable-stylo')
 def stylo(value):
     if value:
         return True
 
+set_config('MOZ_STYLO', stylo)
 set_define('MOZ_STYLO', stylo)
 imply_option('--enable-jemalloc', depends_if('--enable-stylo')(lambda _: 'moz'))
 
 option('--with-servo', env='SERVO_TARGET_DIR', nargs=1,
        help='Absolute path of the target directory where libgeckoservo can '
             'be found. This is generally servo_src_dir/target/release.')
 
 @depends_if('--with-servo')