Skip to content

Commit

Permalink
Merge pull request #1713 from fermyon/ensure-test-app-target
Browse files Browse the repository at this point in the history
Ensure test apps are being built into the appropriate target dir
  • Loading branch information
rylev authored Aug 29, 2023
2 parents 836efc8 + 2f4dcd4 commit 16dd133
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 16dd133

Please sign in to comment.