llvm: make sure Homebrew's Python is first in the PATH (#22837)
Fixes #22679.
This commit is contained in:
parent
44e9fee4be
commit
d1f0649882
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ class Llvm < Formula
|
|||
# Apple's libstdc++ is too old to build LLVM
|
||||
ENV.libcxx if ENV.compiler == :clang
|
||||
|
||||
if build.with? "python"
|
||||
ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"
|
||||
end
|
||||
|
||||
(buildpath/"tools/clang").install resource("clang")
|
||||
(buildpath/"tools/clang/tools/extra").install resource("clang-extra-tools")
|
||||
(buildpath/"projects/openmp").install resource("openmp")
|
||||
|
|
Loading…
Reference in a new issue