std: freebsd build update.

since freebsd 11 had been removed, minimum is now 12.
This commit is contained in:
David CARLIER 2023-08-05 16:15:05 +01:00 committed by David Carlier
parent f31316f7a9
commit 9a963e8026

View File

@ -4,10 +4,8 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-changed=build.rs");
let target = env::var("TARGET").expect("TARGET was not set"); let target = env::var("TARGET").expect("TARGET was not set");
if target.contains("freebsd") { if target.contains("freebsd") {
if env::var("RUST_STD_FREEBSD_12_ABI").is_ok() { println!("cargo:rustc-cfg=freebsd12");
println!("cargo:rustc-cfg=freebsd12"); if env::var("RUST_STD_FREEBSD_13_ABI").is_ok() {
} else if env::var("RUST_STD_FREEBSD_13_ABI").is_ok() {
println!("cargo:rustc-cfg=freebsd12");
println!("cargo:rustc-cfg=freebsd13"); println!("cargo:rustc-cfg=freebsd13");
} }
} else if target.contains("linux") } else if target.contains("linux")