rust/cargo-miri/build.rs

12 lines
443 B
Rust
Raw Normal View History

2021-04-04 05:01:32 -05:00
use vergen::vergen;
fn main() {
// Don't rebuild miri when nothing changed.
2017-08-09 11:05:34 -05:00
println!("cargo:rerun-if-changed=build.rs");
2018-09-16 08:06:05 -05:00
// vergen
2021-04-04 05:01:32 -05:00
let mut gen_config = vergen::Config::default();
*gen_config.git_mut().sha_kind_mut() = vergen::ShaKind::Short;
*gen_config.git_mut().commit_timestamp_kind_mut() = vergen::TimestampKind::DateOnly;
vergen(gen_config).ok(); // Ignore failure (in case we are built outside a git repo)
}