aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-09-18 15:50:54 -0500
committerJack Nagel2014-09-18 15:50:54 -0500
commit99de21ff56ffb4745746c83a9abb194bd8e2780e (patch)
tree179a214aefbdc473a1f8829c0d843880eb5255ad /Library/Homebrew/extend
parent49a14193482a9f0ec95cab78dcc528bccebdafea (diff)
downloadhomebrew-99de21ff56ffb4745746c83a9abb194bd8e2780e.tar.bz2
Remove fails_with? from the formula instance
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 266056751..066266434 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -131,17 +131,7 @@ module SharedEnvExtension
# an alternate compiler, altering the value of environment variables.
# If no valid compiler is found, raises an exception.
def validate_cc!(formula)
- # FIXME
- # The compiler object we pass to fails_with? has no version information
- # attached to it. This means that if we pass Compiler.new(:clang), the
- # selector will be invoked if the formula fails with any version of clang.
- # I think we can safely remove this conditional and always invoke the
- # selector.
- # The compiler priority logic in compilers.rb and default_compiler logic in
- # os/mac.rb need to be unified somehow.
- if formula.fails_with? Compiler.new(compiler)
- send CompilerSelector.new(formula).compiler
- end
+ send CompilerSelector.new(formula).compiler
end
# Snow Leopard defines an NCURSES value the opposite of most distros