Bug 1575853 - Pick rust-size from the right place after bug 1573435. r=nalexander
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 22 Aug 2019 22:44:48 +0000
changeset 489533 c789725af1e47187ba6985456781a3f48453b3f6
parent 489532 be4a0df1d951d4abee05ce5d59c0f089c1afa29b
child 489534 c1046eea513eca896e5eb2e6e74878387e351c83
push id93415
push usermh@glandium.org
push dateThu, 22 Aug 2019 23:09:41 +0000
treeherderautoland@c789725af1e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1575853, 1573435
milestone70.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 1575853 - Pick rust-size from the right place after bug 1573435. r=nalexander Differential Revision: https://phabricator.services.mozilla.com/D43144
testing/mozharness/mozharness/mozilla/building/buildbase.py
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -1311,18 +1311,18 @@ or run without that action (ie: --no-{ac
                 "subtests": size_measurements
             })
 
     def _get_sections(self, file, filter=None):
         """
         Returns a dictionary of sections and their sizes.
         """
         # Check for `rust_size`, our cross platform version of size. It should
-        # be installed by tooltool in $abs_src_dir/rust-size/rust-size
-        rust_size = os.path.join(self.query_abs_dirs()['abs_src_dir'],
+        # be fetched by run-task in $MOZ_FETCHES_DIR/rust-size/rust-size
+        rust_size = os.path.join(os.environ['MOZ_FETCHES_DIR'],
                                  'rust-size', 'rust-size')
         size_prog = self.which(rust_size)
         if not size_prog:
             self.info("Couldn't find `rust-size` program")
             return {}
 
         self.info("Using %s" % size_prog)
         cmd = [size_prog, file]