Skip to content

Commit

Permalink
rerun build script if a source file changed
Browse files Browse the repository at this point in the history
  • Loading branch information
xor-bits committed Feb 20, 2024
1 parent 85472e4 commit 90e427e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/kshell/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ fn main() {
let os_canonical = path.canonicalize().unwrap();
let path = Path::new("/").join(path.strip_prefix(from).unwrap());

println!("cargo:rerun-if-changed={os_canonical:?}");
writeln!(
asset_rs_file,
" ({path:?}, include_bytes!({os_canonical:?})),",
Expand Down

0 comments on commit 90e427e

Please sign in to comment.