aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb4
-rw-r--r--Library/Homebrew/formula.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 146c25755..b71c0228e 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -126,7 +126,7 @@ module HomebrewEnvExtension
ENV['CXX'] = `/usr/bin/xcrun -find #{$1}`.chomp if $1
end
- def gcc args = {}
+ def gcc
# Apple stopped shipping gcc-4.2 with Xcode 4.2
# However they still provide a gcc symlink to llvm
# But we don't want LLVM of course.
@@ -157,7 +157,7 @@ module HomebrewEnvExtension
@compiler = :llvm
end
- def clang args = {}
+ def clang
self['CC'] = xcrun "clang"
self['CXX'] = xcrun "clang++"
replace_in_cflags(/-Xarch_i386 (-march=\S*)/, '\1')
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index d6a80ddc1..453c1082f 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -256,10 +256,10 @@ class Formula
if llvm.build.to_i >= 2336
if MacOS.xcode_version < "4.2"
opoo "Formula will not build with LLVM, using GCC"
- ENV.gcc :force => true
+ ENV.gcc
else
opoo "Formula will not build with LLVM, trying Clang"
- ENV.clang :force => true
+ ENV.clang
end
return
end