Bug 1370296 - Move toolkit/library/**/rust first in toolkit/toolkit.mozbuild. r?gps draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 14 Jun 2017 15:12:06 +0900
changeset 593896 7ecf92ba06bcf6c5a6e6ea63cde81ed3a102d1c5
parent 593895 bec95a752202ec59f24dd0299ccb74a0493605a5
child 633256 25f2b983270b9962a24ada9300a3caa339e4db91
push id63854
push userbmo:mh+mozilla@glandium.org
push dateWed, 14 Jun 2017 08:40:45 +0000
reviewersgps
bugs1370296
milestone56.0a1
Bug 1370296 - Move toolkit/library/**/rust first in toolkit/toolkit.mozbuild. r?gps It is technically possible to move it even further up with adjustments to the top-level moz.build, but that would either be too hackish, or more involved (and possibly risky for other targets), so I'd rather keep that for a followup.
toolkit/toolkit.mozbuild
--- a/toolkit/toolkit.mozbuild
+++ b/toolkit/toolkit.mozbuild
@@ -1,14 +1,19 @@
 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
+DIRS += [
+    '/toolkit/library/gtest/rust',
+    '/toolkit/library/rust',
+]
+
 if CONFIG['MOZ_SANDBOX']:
     DIRS += ['/security/sandbox']
 
 DIRS += [
     # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
     # builds fail.
     '/security/certverifier',
     # Depends on certverifier
@@ -129,18 +134,16 @@ DIRS += [
 ]
 
 if CONFIG['MOZ_PREF_EXTENSIONS']:
     DIRS += ['/extensions/pref']
 
 DIRS += [
     '/devtools',
     '/toolkit/library',
-    '/toolkit/library/gtest/rust',
-    '/toolkit/library/rust',
     '/toolkit/library/StaticXULComponentsEnd',
     '/services',
     '/startupcache',
     '/js/ductwork/debugger',
     '/other-licenses/snappy',
 ]
 
 if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']: