Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: mojo/public/rust/build.rs

Issue 2213563002: Rust: Add encoder/decoder tests (Closed) Base URL: git@github.com:domokit/mojo.git@decoding
Patch Set: Test with changes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/rust/tests/encoding.rs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/rust/build.rs
diff --git a/mojo/public/rust/build.rs b/mojo/public/rust/build.rs
index ad46c9213e817fb9505383cf62da814a28a51ea5..4c5740c6800caa1945750905645d7aabce50c088 100644
--- a/mojo/public/rust/build.rs
+++ b/mojo/public/rust/build.rs
@@ -56,9 +56,16 @@ fn main() {
None => panic!("Failed to find system_thunks."),
}
} else {
+ println!("cargo:rustc-link-lib=stdc++");
+ match search_output(mojo_out_dir, OsStr::new("libvalidation_parser.a")) {
+ Some(path) => {
+ println!("cargo:rustc-link-lib=static=validation_parser");
+ println!("cargo:rustc-link-search=native={}", path.display());
+ }
+ None => panic!("Failed to find validation_parser."),
+ }
match search_output(mojo_out_dir, OsStr::new("librust_embedder.a")) {
Some(path) => {
- println!("cargo:rustc-link-lib=stdc++");
println!("cargo:rustc-link-lib=static=rust_embedder");
println!("cargo:rustc-link-search=native={}", path.display());
}
« no previous file with comments | « no previous file | mojo/public/rust/tests/encoding.rs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698