From 1600658fcc6f08ef4e03de93b6a115e779a0d442 Mon Sep 17 00:00:00 2001 From: Geoff Nixon Date: Tue, 28 Apr 2015 21:02:55 -0700 Subject: ghc: cleanup/decruft. - Fix static GMP - Remove --32-bit option (ghc 7.6 or newer is needed to build). - Building with llvm-gcc and 7.6.3 works on Snow Leopard and Lion. Closes Homebrew/homebrew#39134. Signed-off-by: Mike McQuaid --- Library/Homebrew/language/haskell.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index 97eaaa087..e6dcabea1 100644 --- a/Library/Homebrew/language/haskell.rb +++ b/Library/Homebrew/language/haskell.rb @@ -10,6 +10,10 @@ module Language # avoid touching ~/.cabal home = ENV["HOME"] ENV["HOME"] = pwd + + # Use llvm-gcc on Lion or below (same compiler used when building GHC). + fails_with(:clang) if MacOS.version <= :lion + # use cabal's sandbox feature if available cabal_version = `cabal --version`[/[0-9.]+/].split('.').collect(&:to_i) if (cabal_version <=> [1, 20]) > -1 -- cgit v1.2.3