linkage_checker: ignore broken linkage with LLVM libc++.

This linkage will be broken in LLVM 15, but this is typically harmless
since dyld will load `/usr/lib/libc++.1.dylib` instead.
This commit is contained in:
Carlo Cabrera 2022-09-19 12:37:32 +08:00
parent 5524b302d8
commit 957c2c983c
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -311,9 +311,12 @@ class LinkageChecker
def harmless_broken_link?(dylib) def harmless_broken_link?(dylib)
# libgcc_s_* is referenced by programs that use the Java Service Wrapper, # libgcc_s_* is referenced by programs that use the Java Service Wrapper,
# and is harmless on x86(_64) machines # and is harmless on x86(_64) machines
# dyld will fall back to Apple libc++ if LLVM's is not available.
[ [
"/usr/lib/libgcc_s_ppc64.1.dylib", "/usr/lib/libgcc_s_ppc64.1.dylib",
"/opt/local/lib/libgcc/libgcc_s.1.dylib", "/opt/local/lib/libgcc/libgcc_s.1.dylib",
# TODO: Report linkage with `/usr/lib/libc++.1.dylib` when this link is broken.
"#{HOMEBREW_PREFIX}/opt/llvm/lib/libc++.1.dylib",
].include?(dylib) ].include?(dylib)
end end