aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-09-21 17:43:37 -0500
committerJack Nagel2014-09-21 18:27:04 -0500
commit08f81b3c9b5041ed0aea01c62a91f705cf3e6d4b (patch)
tree343d329e9d05416c97441e41ed29d0a7b057c95b /Library/Formula
parentc9262201f5141320b3792b53a1eef2a2b9e3a100 (diff)
downloadhomebrew-08f81b3c9b5041ed0aea01c62a91f705cf3e6d4b.tar.bz2
llvm: fix build on 10.7 and 10.8
Closes #32495.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/llvm.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb
index a66b30575..b8d8ac1d1 100644
--- a/Library/Formula/llvm.rb
+++ b/Library/Formula/llvm.rb
@@ -44,7 +44,14 @@ class Llvm < Formula
keg_only :provided_by_osx
+ # Apple's libstdc++ is too old to build LLVM
+ fails_with :gcc
+ fails_with :llvm
+
def install
+ # Apple's libstdc++ is too old to build LLVM
+ ENV.libcxx if ENV.compiler == :clang
+
if build.with? "python" and build.include? 'disable-shared'
raise 'The Python bindings need the shared library.'
end