From 2639bbff3c2c6f471999294aea6bb9ca79feadaa Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Thu, 10 Nov 2022 11:09:52 -0800 Subject: [PATCH] fix(kernel): ensure build script is rerun on changes This ensures that the build script is re-run if the hello world wasm or the target spec change. --- build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.rs b/build.rs index c96183bb..3619dded 100644 --- a/build.rs +++ b/build.rs @@ -8,5 +8,8 @@ fn main() -> Result<(), Box> { // Build our helloworld.wast into binary. let binary = wat::parse_file("src/helloworld.wast")?; fs::write(out_dir.join("helloworld.wasm"), &binary)?; + + println!("cargo:rerun-if-changed=src/helloworld.wast"); + println!("cargo:rerun-if-changed=x86_64-mycelium.json"); Ok(()) }