From 38c1d25036d3851de120df46179dd78d31ccb369 Mon Sep 17 00:00:00 2001 From: Jack Nagel <jacknagel@gmail.com> Date: Thu, 11 Jul 2013 13:03:24 -0500 Subject: [PATCH] Remove unreachable branch in ENV.fortran Now that this is handled by a Requirement with a default formula, this code cannot be triggered under normal circumstances. The advice given has now been moved to the Formula Cookbook on the wiki. --- Library/Homebrew/extend/ENV.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 22f1a92b47..8d971eb938 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -490,22 +490,6 @@ class << ENV HomebrewEnvExtension::FC_FLAG_VARS.each {|key| self[key] = cflags} set_cpu_flags(HomebrewEnvExtension::FC_FLAG_VARS) - else - onoe <<-EOS -This formula requires a fortran compiler, but we could not find one by -looking at the FC environment variable or searching your PATH for `gfortran`. -Please take one of the following actions: - - - Decide to use the build of gfortran 4.2.x provided by Homebrew using - `brew install gfortran` - - - Choose another Fortran compiler by setting the FC environment variable: - export FC=/path/to/some/fortran/compiler - Using an alternative compiler may produce more efficient code, but we will - not be able to provide support for build errors. - EOS - exit 1 end end - end -- GitLab