Skip to content

Commit

Permalink
std: freebsd build update.
Browse files Browse the repository at this point in the history
since freebsd 11 had been removed, minimum is now 12.
  • Loading branch information
devnexen committed Aug 5, 2023
1 parent b3df56a commit 0a80741
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/std/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0a80741

Please sign in to comment.