diff options
author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-12-05 17:30:54 +0100 |
---|---|---|
committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-12-05 17:37:45 +0100 |
commit | 53e79b886bf4e4d3682ae6669e3585b3586e5255 (patch) | |
tree | 3c46a72dba2ce4658ec8c4e017195edec6a42c76 /build.rs | |
parent | ac6e16b90fd36775341724cf0c6b00b4c8d33d60 (diff) | |
download | rust-libc-53e79b886bf4e4d3682ae6669e3585b3586e5255.tar.gz |
Fix invalid freebsd version selection
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -25,13 +25,11 @@ fn main() { // On CI, we detect the actual FreeBSD version and match its ABI exactly, // running tests to ensure that the ABI is correct. match which_freebsd() { - Some(10) if libc_ci || rustc_dep_of_std => { - println!("cargo:rustc-cfg=freebsd10") - } - Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"), - Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"), - Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"), - Some(14) if libc_ci => println!("cargo:rustc-cfg=freebsd14"), + Some(10) => println!("cargo:rustc-cfg=freebsd10"), + Some(11) => println!("cargo:rustc-cfg=freebsd11"), + Some(12) => println!("cargo:rustc-cfg=freebsd12"), + Some(13) => println!("cargo:rustc-cfg=freebsd13"), + Some(14) => println!("cargo:rustc-cfg=freebsd14"), Some(_) | None => println!("cargo:rustc-cfg=freebsd11"), } |