From e97d07aa6950e7120d22445606ee565b0d1ffbb7 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 17 Sep 2021 16:58:21 -0600 Subject: [PATCH 1/2] 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 ) (cherry picked from commit 4bafe6b1df5ca3edac9ebc2d63d811d84a972a08) --- build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 163735ac4cad..dddbe9360fab 100644 --- a/build.rs +++ b/build.rs @@ -58,7 +58,7 @@ fn main() { let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default(); // The ABI of libc used by std is backward compatible with FreeBSD 12. - // The ABI of libc from crates.io is backward compatible with FreeBSD 11. + // The ABI of libc from crates.io is backward compatible with FreeBSD 12. // // On CI, we detect the actual FreeBSD version and match its ABI exactly, // running tests to ensure that the ABI is correct. @@ -69,11 +69,11 @@ fn main() { println!("cargo:warning=setting FreeBSD version to {vers}"); vers } else if libc_ci { - which_freebsd().unwrap_or(11) + which_freebsd().unwrap_or(12) } else if rustc_dep_of_std { 12 } else { - 11 + 12 }; match which_freebsd { From f1fe193f92daf44f1455aeccb540260f87fe15fe Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 15 Sep 2025 15:12:07 +0800 Subject: [PATCH 2/2] build.rs: Avoid duplicate branch in FreeBSD version handling --- build.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.rs b/build.rs index dddbe9360fab..ba1b1df52797 100644 --- a/build.rs +++ b/build.rs @@ -70,8 +70,6 @@ fn main() { vers } else if libc_ci { which_freebsd().unwrap_or(12) - } else if rustc_dep_of_std { - 12 } else { 12 };