We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cac7b2 commit 6754910Copy full SHA for 6754910
build.rs
@@ -4,11 +4,12 @@
4
use std::env;
5
6
fn main() {
7
+ // Depend on this file to prevent rebuilding on any change - see #1173 for details
8
+ println!("cargo:rerun-if-changed=build.rs");
9
+
10
// Re-export $TARGET during the build so that our executable tests know
11
// what environment variable CARGO_TARGET_@TARGET@_RUNNER to check when
12
// they want to spawn off executables.
-
- println!("cargo:rerun-if-changed=build.rs");
13
let target = env::var("TARGET").unwrap();
14
println!("cargo:rustc-env=TARGET={target}");
15
}
0 commit comments