diff options
| author | David CARLIER <devnexen@gmail.com> | 2023-08-05 16:15:05 +0100 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2023-10-20 14:59:13 +0100 |
| commit | 9a963e80260f8fc26c502e30ffca43661e454ad0 (patch) | |
| tree | 4fe9a9201ac299534620878ff0195f6dbf5dd930 | |
| parent | f31316f7a99785ae6958110af095beadb08038ea (diff) | |
| download | rust-9a963e80260f8fc26c502e30ffca43661e454ad0.tar.gz rust-9a963e80260f8fc26c502e30ffca43661e454ad0.zip | |
std: freebsd build update.
since freebsd 11 had been removed, minimum is now 12.
| -rw-r--r-- | library/std/build.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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") |
