rust/build.rs

14 lines
404 B
Rust
Raw Normal View History

2018-09-16 08:06:05 -05:00
extern crate vergen;
use std::env;
fn main() {
// Forward the profile to the main compilation
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());
2017-08-09 11:05:34 -05:00
// Don't rebuild miri even if nothing changed
println!("cargo:rerun-if-changed=build.rs");
2018-09-16 08:06:05 -05:00
// vergen
2018-10-09 13:17:54 -05:00
vergen::generate_cargo_keys(vergen::ConstantsFlags::all())
.expect("Unable to generate vergen keys!");
}