Skip to content

Commit 53e79b8

Browse files
Fix invalid freebsd version selection
1 parent ac6e16b commit 53e79b8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

build.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ fn main() {
2525
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
2626
// running tests to ensure that the ABI is correct.
2727
match which_freebsd() {
28-
Some(10) if libc_ci || rustc_dep_of_std => {
29-
println!("cargo:rustc-cfg=freebsd10")
30-
}
31-
Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"),
32-
Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"),
33-
Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"),
34-
Some(14) if libc_ci => println!("cargo:rustc-cfg=freebsd14"),
28+
Some(10) => println!("cargo:rustc-cfg=freebsd10"),
29+
Some(11) => println!("cargo:rustc-cfg=freebsd11"),
30+
Some(12) => println!("cargo:rustc-cfg=freebsd12"),
31+
Some(13) => println!("cargo:rustc-cfg=freebsd13"),
32+
Some(14) => println!("cargo:rustc-cfg=freebsd14"),
3533
Some(_) | None => println!("cargo:rustc-cfg=freebsd11"),
3634
}
3735

0 commit comments

Comments
 (0)