Merge pull request #3840 from aw1621107/prefer-xcode-libcxx
Add macOS libs ahead of brewed llvm libs in lib search path
This commit is contained in:
commit
eee6e98d90
@ -173,11 +173,22 @@ module Superenv
|
|||||||
end
|
end
|
||||||
|
|
||||||
def determine_library_paths
|
def determine_library_paths
|
||||||
PATH.new(
|
paths = [
|
||||||
keg_only_deps.map(&:opt_lib),
|
keg_only_deps.map(&:opt_lib),
|
||||||
HOMEBREW_PREFIX/"lib",
|
HOMEBREW_PREFIX/"lib",
|
||||||
homebrew_extra_library_paths,
|
]
|
||||||
).existing
|
|
||||||
|
if compiler == :llvm_clang
|
||||||
|
if MacOS::CLT.installed?
|
||||||
|
paths << "/usr/lib"
|
||||||
|
else
|
||||||
|
paths << "#{MacOS.sdk_path}/usr/lib"
|
||||||
|
end
|
||||||
|
paths << Formula["llvm"].opt_lib.to_s
|
||||||
|
end
|
||||||
|
|
||||||
|
paths += homebrew_extra_library_paths
|
||||||
|
PATH.new(paths).existing
|
||||||
end
|
end
|
||||||
|
|
||||||
def determine_dependencies
|
def determine_dependencies
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user