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:
Ryan Levick 2023-08-28 13:53:38 +02:00
parent 32199e1bcf
commit 2f4dcd4e93
No known key found for this signature in database
1 changed files with 11 additions and 1 deletions

View File

@ -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,
);