Skip to content

Commit

Permalink
Avoid unnecessary rebuilds when neither data/ nor generator/ changed
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Sep 1, 2023
1 parent 84519ce commit ccbf6cb
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 @@ -4,6 +4,9 @@ use unicode_names2_generator as generator;
const UNICODE_DATA: &str = include_str!("data/UnicodeData.txt");

fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=data/");
println!("cargo:rerun-if-changed=generator/");
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
{
let mut generated_path = out_dir.clone();
Expand Down

0 comments on commit ccbf6cb

Please sign in to comment.