|
@ -7,4 +7,9 @@ fn main() { |
|
|
// This is necessary for Wiggle/Witx macros.
|
|
|
// This is necessary for Wiggle/Witx macros.
|
|
|
let wasi_root = PathBuf::from("./spec").canonicalize().unwrap(); |
|
|
let wasi_root = PathBuf::from("./spec").canonicalize().unwrap(); |
|
|
println!("cargo:rustc-env=WASI_ROOT={}", wasi_root.display()); |
|
|
println!("cargo:rustc-env=WASI_ROOT={}", wasi_root.display()); |
|
|
|
|
|
|
|
|
|
|
|
// Also automatically rebuild if the Witx files change
|
|
|
|
|
|
for entry in walkdir::WalkDir::new(wasi_root) { |
|
|
|
|
|
println!("cargo:rerun-if-changed={}", entry.unwrap().path().display()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|