aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDarin Morrison2013-09-18 21:18:40 -0600
committerMisty De Meo2013-09-18 22:05:14 -0700
commit8b748cbe53d390358a40147e5ce170c9e4a74c88 (patch)
treef85d5d407578d2c0eaec79a29e130d7a0510e2f9 /Library/Formula
parentec9ccdf8fc943edd8dfff268bc278119ae40986a (diff)
downloadhomebrew-8b748cbe53d390358a40147e5ce170c9e4a74c88.tar.bz2
ghc: fix building with Xcode 5
Closes #22674. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ghc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb
index 813515fab..7a2116807 100644
--- a/Library/Formula/ghc.rb
+++ b/Library/Formula/ghc.rb
@@ -57,7 +57,7 @@ class Ghc < Formula
# ensure configure does not use Xcode 5 "gcc" which is actually clang
args = ["--prefix=#{subprefix}"]
- args << "--with-gcc=#{ENV.cc}" if ENV.compiler == :gcc
+ args << "--with-gcc=#{ENV.cc}"
system "./configure", *args
system 'make -j1 install' # -j1 fixes an intermittent race condition
@@ -78,7 +78,7 @@ class Ghc < Formula
# ensure configure does not use Xcode 5 "gcc" which is actually clang
args = ["--prefix=#{prefix}", "--build=#{arch}-apple-darwin"]
- args << "--with-gcc=#{ENV.cc}" if ENV.compiler == :gcc
+ args << "--with-gcc=#{ENV.cc}"
system "./configure", *args
system 'make'