llvm: add Xcode CLT notice (#29690)

This commit is contained in:
DesWurstes 2018-08-08 13:47:02 +03:00 committed by FX Coudert
parent 34af3fe411
commit b717b7d708

View file

@ -168,6 +168,12 @@ class Llvm < Formula
build.with?("libcxx") || !MacOS::CLT.installed?
end
# Clang cannot find system headers if Xcode CLT is not installed
pour_bottle? do
reason "The bottle needs the Xcode CLT to be installed."
satisfy { MacOS::CLT.installed? }
end
def install
# Apple's libstdc++ is too old to build LLVM
ENV.libcxx if ENV.compiler == :clang