llvm: make sure Homebrew's Python is first in the PATH (#22837)

Fixes #22679.
This commit is contained in:
Timothee Cour 2018-01-13 13:28:02 -08:00 committed by ilovezfs
parent 44e9fee4be
commit d1f0649882

View file

@ -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")