diff options
| author | Misty De Meo | 2014-01-04 01:22:04 -0800 |
|---|---|---|
| committer | Misty De Meo | 2014-01-04 01:22:04 -0800 |
| commit | 02612e270b7b331cceaa598c16eb15a81e9b6238 (patch) | |
| tree | 45fa06c906025e61dceca88e7b600b75586a4560 /Library | |
| parent | 84f6f158c944b3c267cd6429f0f1e661b1aa1b72 (diff) | |
| download | homebrew-02612e270b7b331cceaa598c16eb15a81e9b6238.tar.bz2 | |
ENV.gcc: remove raise
This raise happened in no other ENV methods, and isn't really necessary
since fails_with guards against this method actually being called unless
gcc-4.2 is actually installed.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/std.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 51d9ef1ff..71e89a666 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -131,16 +131,6 @@ module Stdenv self.cc = MacOS.locate("gcc-4.2") self.cxx = MacOS.locate("g++-4.2") - if cc.empty? - self.cc = "#{HOMEBREW_PREFIX}/bin/gcc-4.2" - self.cxx = "#{HOMEBREW_PREFIX}/bin/g++-4.2" - raise "GCC could not be found" unless File.exist? cc - end - - unless cc =~ %r{^/usr/bin/xcrun } - raise "GCC could not be found" if Pathname.new(cc).realpath.to_s =~ /llvm/ - end - replace_in_cflags '-O4', '-O3' set_cpu_cflags @compiler = :gcc |
