diff --git a/library/std/build.rs b/library/std/build.rs index 046ac488b1f..2521ad8efc0 100644 --- a/library/std/build.rs +++ b/library/std/build.rs @@ -4,10 +4,8 @@ fn main() { println!("cargo:rerun-if-changed=build.rs"); let target = env::var("TARGET").expect("TARGET was not set"); if target.contains("freebsd") { - if env::var("RUST_STD_FREEBSD_12_ABI").is_ok() { - println!("cargo:rustc-cfg=freebsd12"); - } else if env::var("RUST_STD_FREEBSD_13_ABI").is_ok() { - println!("cargo:rustc-cfg=freebsd12"); + println!("cargo:rustc-cfg=freebsd12"); + if env::var("RUST_STD_FREEBSD_13_ABI").is_ok() { println!("cargo:rustc-cfg=freebsd13"); } } else if target.contains("linux")