Skip to content

Commit 8e2764a

Browse files
committed
Add rebuild-if-changed
Incremental rebuild of `cargo check` after change in godot-core timings: before: 48.015s average after: 32.063s average diff: -33.22%
1 parent e27a69e commit 8e2764a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

godot-core/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ fn main() {
1616
}
1717

1818
godot_codegen::generate_core_files(gen_path);
19+
println!("cargo:rerun-if-changed=build.rs");
1920
}

godot-ffi/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ fn main() {
2626
godot_codegen::generate_sys_files(gen_path, &mut watch);
2727

2828
watch.write_stats_to(&gen_path.join("ffi-stats.txt"));
29+
println!("cargo:rerun-if-changed=build.rs");
2930
}

0 commit comments

Comments
 (0)