Merge pull request #17104 from Homebrew/llvm-library-paths

extend/ENV/super: avoid adding `llvm` to `HOMEBREW_LIBRARY_PATHS`
This commit is contained in:
Carlo Cabrera 2024-04-24 17:16:10 +08:00 committed by GitHub
commit e3e927f688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,7 +229,9 @@ module Superenv
end end
end end
paths << keg_only_deps.map(&:opt_lib) # Don't add `llvm` to library paths; this leads to undesired linkage to LLVM's `libunwind`
paths << keg_only_deps.reject { |dep| dep.name.match?(/^llvm(@\d+)?$/) }
.map(&:opt_lib)
paths << (HOMEBREW_PREFIX/"lib") paths << (HOMEBREW_PREFIX/"lib")
paths += homebrew_extra_library_paths paths += homebrew_extra_library_paths