Skip to content

Commit b6b11f4

Browse files
Rollup merge of #151551 - ehuss:test-build-script, r=jhpratt
Don't use default build-script fingerprinting in `test` This changes the `test` build script so that it does not use the default fingerprinting mechanism in cargo which causes a full scan of the package every time it runs. This build script does not depend on any of the files in the package. This is the recommended approach for writing build scripts.
2 parents 474c9fe + e38b55d commit b6b11f4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fn main() {
2+
println!("cargo:rerun-if-changed=build.rs");
23
println!("cargo:rustc-check-cfg=cfg(enable_unstable_features)");
34

45
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".into());

0 commit comments

Comments
 (0)