Skip to content

Commit

Permalink
fix(kernel): ensure build script is rerun on changes (#372)
Browse files Browse the repository at this point in the history
This ensures that the build script is re-run if the hello world wasm or
the target spec change.
  • Loading branch information
hawkw committed Nov 16, 2022
1 parent 8ab10b7 commit e3c66da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// 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(())
}

0 comments on commit e3c66da

Please sign in to comment.