Skip to content

Commit

Permalink
Fix invalid freebsd version selection
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 5, 2021
1 parent ac6e16b commit 53e79b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}

Expand Down

0 comments on commit 53e79b8

Please sign in to comment.