From d452e5097f497d61f6e32d941b3e822c26d84fd3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 17 Mar 2020 15:08:35 -0500 Subject: [PATCH] Build wasmtime-c-api differenty in run-examples (#1346) * Build wasmtime-c-api differenty in run-examples This tweaks how the wasmtime-c-api crate is built slightly, changing how we invoke Cargo. Due to historical Cargo bugs this should help minimize the number of rebuilds due to features since the feature selection will be different. * rustfmt --- crates/misc/run-examples/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/misc/run-examples/src/main.rs b/crates/misc/run-examples/src/main.rs index c01a58a994..6eec10f212 100644 --- a/crates/misc/run-examples/src/main.rs +++ b/crates/misc/run-examples/src/main.rs @@ -13,7 +13,9 @@ fn main() { .collect::>(); println!("======== Building libwasmtime.a ==========="); - run(Command::new("cargo").args(&["build", "-p", "wasmtime-c-api"])); + run(Command::new("cargo") + .args(&["build"]) + .current_dir("crates/c-api")); for (example, is_dir) in examples { if example == "README" {