Ensure test apps are being built into the appropriate target dir
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
This commit is contained in:
parent
32199e1bcf
commit
2f4dcd4e93
12
build.rs
12
build.rs
|
@ -115,7 +115,17 @@ fn has_wasm32_wasi_target() -> bool {
|
|||
|
||||
fn cargo_build(dir: &str) {
|
||||
run(
|
||||
vec!["cargo", "build", "--target", "wasm32-wasi", "--release"],
|
||||
vec![
|
||||
"cargo",
|
||||
"build",
|
||||
"--target",
|
||||
"wasm32-wasi",
|
||||
"--release",
|
||||
// Ensure that even if `CARGO_TARGET_DIR` is set
|
||||
// that we're still building into the right dir.
|
||||
"--target-dir",
|
||||
"./target",
|
||||
],
|
||||
Some(dir),
|
||||
None,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue