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 6a8e9e2 commit 3ebef32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ 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)?;
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 3ebef32

Please sign in to comment.