Bug 1302704 - part 4 - provide a target directory for gkrust and gkrust-gtest; r=chmanchester
authorNathan Froyd <froydnj@mozilla.com>
Thu, 23 Feb 2017 10:35:07 -0500
changeset 373624 95b0a622699271828ef3bcb644837be4a5bf0d7d
parent 373623 3c3ffbed3a4b22e613f0912c2ecb0378e7f8a35e
child 373625 7cbbf867604cadcc1f083848cd42222997aad251
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1302704
milestone54.0a1
Bug 1302704 - part 4 - provide a target directory for gkrust and gkrust-gtest; r=chmanchester Doing this gets us all of the benefits that we want from Cargo workspaces (only compiling artifacts from gkrust-shared one time for both libraries) without all the hassles that using Cargo workspaces would require. We don't have to worry about multiple Cargo processes running simultaneously and racing to write files; Cargo is smart enough to lock the build directory to serialize access to it.
toolkit/library/gtest/rust/moz.build
toolkit/library/rust/moz.build
--- a/toolkit/library/gtest/rust/moz.build
+++ b/toolkit/library/gtest/rust/moz.build
@@ -9,9 +9,9 @@ if CONFIG['MOZ_STYLO']:
     features += ['servo']
 
     if CONFIG['MOZ_STYLO_BINDGEN']:
         features += ['bindgen']
 
 if CONFIG['MOZ_ENABLE_WEBRENDER']:
     features += ['quantum_render']
 
-RustLibrary('gkrust-gtest', features)
+RustLibrary('gkrust-gtest', features, '../..')
--- a/toolkit/library/rust/moz.build
+++ b/toolkit/library/rust/moz.build
@@ -9,9 +9,9 @@ if CONFIG['MOZ_STYLO']:
     features += ['servo']
 
     if CONFIG['MOZ_STYLO_BINDGEN']:
         features += ['bindgen']
 
 if CONFIG['MOZ_ENABLE_WEBRENDER']:
     features += ['quantum_render']
 
-RustLibrary('gkrust', features)
+RustLibrary('gkrust', features, '..')