]> git.lizzy.rs Git - rust.git/blobdiff - build.rs
add checks for the signature of the lang item
[rust.git] / build.rs
index 1c930c1b2c95e531928f002e295c50f0eb31d782..b79d09b0dd2d2776e98a4ae73de9c2884e722677 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -1,8 +1,7 @@
-use std::env;
-
 fn main() {
     // Forward the profile to the main compilation
-    println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());
+    println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());
     // Don't rebuild even if nothing changed
     println!("cargo:rerun-if-changed=build.rs");
+    rustc_tools_util::setup_version_info!();
 }