Skip to content

Commit 94de081

Browse files
committed
rust: allow list __availability_version_check weak symbol
Upgrading to LLVM 17 on macOS broke our weak symbol validation. Turns out compiler-rt started making this a weak symbol instead of looking for it manually at runtime. We allow list the symbol as we do other weak symbols injected by the LLVM toolchain.
1 parent 75cfbab commit 94de081

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/validation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ const MACHO_ALLOWED_WEAK_SYMBOLS_38_NON_AARCH64: &[&str] = &[
476476
// Internal to Apple SDK. However, the symbol isn't guarded properly in some Apple
477477
// SDKs. See https://github.com/indygreg/PyOxidizer/issues/373.
478478
"___darwin_check_fd_set_overflow",
479+
// Used by compiler-rt in 17.0.0. LLVM commit b653a2823fe4b4c9c6d85cfe119f31d8e70c2fa0.
480+
"__availability_version_check",
479481
// Appears to get inserted by Clang.
480482
"_dispatch_once_f",
481483
// Used by CPython. But is has runtime availability guards in 3.8 (one of the few

0 commit comments

Comments
 (0)