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
This commit is contained in:
Alex Crichton
2020-03-17 15:08:35 -05:00
committed by GitHub
parent 3164ea55ee
commit d452e5097f

View File

@@ -13,7 +13,9 @@ fn main() {
.collect::<BTreeSet<_>>();
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" {