]> git.lizzy.rs Git - rust.git/blobdiff - build.rs
Rename MacOS set global dtor function.
[rust.git] / build.rs
index 2f74f7f4f6162ae5e1d875873db78d7c772bd513..56956920e2e2690e9d65498b61b0a9eab280a92f 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());
-    // Don't rebuild miri even if nothing changed
+    // Don't rebuild miri when nothing changed.
     println!("cargo:rerun-if-changed=build.rs");
+    // vergen
+    vergen::generate_cargo_keys(vergen::ConstantsFlags::all())
+        .expect("Unable to generate vergen keys!");
 }