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 344597 95b0a622699271828ef3bcb644837be4a5bf0d7d
parent 344596 3c3ffbed3a4b22e613f0912c2ecb0378e7f8a35e
child 344598 7cbbf867604cadcc1f083848cd42222997aad251
push id31414
push usercbook@mozilla.com
push dateFri, 24 Feb 2017 10:47:41 +0000
treeherdermozilla-central@be661bae6cb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1302704
milestone54.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 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, '..')