Skip to content

Commit 8d128b6

Browse files
finalyardslulf
authored andcommitted
brought the to 'host/build.rs' lines back; renewed comments
1 parent 0bab05b commit 8d128b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

host/build.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ fn main() {
2828
.to_ascii_uppercase()
2929
.replace('-', "_");
3030

31-
//disabled; potentially unnecessary
32-
// only rebuild if build.rs changed. Otherwise Cargo will rebuild if any other file changed.
33-
//println!("cargo::rustc-check-cfg=cfg(test)");
34-
//println!("cargo::rerun-if-changed=build.rs");
31+
// We don't use any external files: only run the build script if it has changed.
32+
// Otherwise, Cargo will re-run it on each build.
33+
println!("cargo::rerun-if-changed=build.rs");
34+
35+
println!("cargo::rustc-check-cfg=cfg(test)");
3536

3637
// Check feature usage.
3738
//

0 commit comments

Comments
 (0)