diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index e41373a623650fffbd3fe766737d48cf75c78e04..fb2741b53f0125c6cca6e53010ffd3532cd29c27 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -58,17 +58,7 @@ module Stdenv append 'LDFLAGS', '-Wl,-headerpad_max_install_names' - # set us up for the user's compiler choice - self.send self.compiler - - # we must have a working compiler! - unless cc - @compiler = MacOS.default_compiler - self.send @compiler - self.cc = MacOS.locate("cc") - self.cxx = MacOS.locate("c++") - end - + send(compiler) validate_cc!(formula) unless formula.nil? if cc =~ GNU_GCC_REGEXP