Skip to content

Commit f4afd03

Browse files
asomerstgross35
authored andcommitted
Raise libc's FreeBSD ABI to 12
FreeBSD 11 was EoL on 30-Sept-2021. Update libc's ABI to 12. That version includes significant changes, such as 64-bit inodes. (backport <#2406>) (cherry picked from commit 4bafe6b)
1 parent a719972 commit f4afd03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() {
5858
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
5959

6060
// The ABI of libc used by std is backward compatible with FreeBSD 12.
61-
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
61+
// The ABI of libc from crates.io is backward compatible with FreeBSD 12.
6262
//
6363
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
6464
// running tests to ensure that the ABI is correct.
@@ -69,11 +69,11 @@ fn main() {
6969
println!("cargo:warning=setting FreeBSD version to {vers}");
7070
vers
7171
} else if libc_ci {
72-
which_freebsd().unwrap_or(11)
72+
which_freebsd().unwrap_or(12)
7373
} else if rustc_dep_of_std {
7474
12
7575
} else {
76-
11
76+
12
7777
};
7878

7979
match which_freebsd {

0 commit comments

Comments
 (0)