We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bab05b commit 8d128b6Copy full SHA for 8d128b6
host/build.rs
@@ -28,10 +28,11 @@ fn main() {
28
.to_ascii_uppercase()
29
.replace('-', "_");
30
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");
+ // We don't use any external files: only run the build script if it has changed.
+ // Otherwise, Cargo will re-run it on each build.
+ println!("cargo::rerun-if-changed=build.rs");
+
35
+ println!("cargo::rustc-check-cfg=cfg(test)");
36
37
// Check feature usage.
38
//
0 commit comments