blob: 89638e93e7b13da7ebdd2814686b867036483f74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
extern crate rustc_version;
use rustc_version::{version, Version};
fn main() {
// Assert we haven't travelled back in time
assert!(version().unwrap().major >= 1);
// Check for a minimum version
if version().unwrap() >= Version::parse("1.36.0").unwrap() {
println!("cargo:rustc-cfg=memoffset_maybe_uninit");
}
}
|