Skip to content

Commit

Permalink
Merge pull request #1587 from alexcrichton/update-main-build-script
Browse files Browse the repository at this point in the history
  • Loading branch information
radu-matei authored Jun 17, 2023
2 parents 6fb9370 + 15196bb commit 0b7fbde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ fn main() {
let build_spin_tests = env::var("BUILD_SPIN_EXAMPLES")
.map(|v| v == "1")
.unwrap_or(true);
println!("cargo:rerun-if-env-changed=BUILD_SPIN_EXAMPLES");

if !build_spin_tests {
println!("cargo:rerun-if-env-changed=BUILD_SPIN_EXAMPLES");
return;
}

Expand Down Expand Up @@ -95,7 +95,8 @@ fn build_wasm_test_program(name: &'static str, root: &'static str) {
.release()
.target("wasm32-wasi")
.build();
println!("cargo:rerun-if-changed={root}");
println!("cargo:rerun-if-changed={root}/Cargo.toml");
println!("cargo:rerun-if-changed={root}/Cargo.lock");
}

fn has_wasm32_wasi_target() -> bool {
Expand Down

0 comments on commit 0b7fbde

Please sign in to comment.