Skip to content

Commit

Permalink
Merge pull request #17104 from Homebrew/llvm-library-paths
Browse files Browse the repository at this point in the history
extend/ENV/super: avoid adding `llvm` to `HOMEBREW_LIBRARY_PATHS`
  • Loading branch information
carlocab committed Apr 24, 2024
2 parents 378c71d + 4f31a3e commit e3e927f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/extend/ENV/super.rb
Expand Up @@ -229,7 +229,9 @@ def determine_library_paths
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_extra_library_paths
Expand Down

0 comments on commit e3e927f

Please sign in to comment.