Skip to content

Commit cc49a08

Browse files
committed
Only rerun the build script if the C++ sources changed
1 parent 18cee9d commit cc49a08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn main() {
1818
.filter(|p| p.extension().map(|ext| ext == "cpp") == Some(true))
1919
.collect::<Vec<_>>();
2020
for source in sources.iter() {
21+
println!("cargo:rerun-if-changed={}", source.display());
2122
build.file(source.to_str().unwrap());
2223
}
2324
build.flag("-std=c++11");

0 commit comments

Comments
 (0)