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.
This commit is contained in:
parent
e805b8636c
commit
38c1d25036
@ -490,22 +490,6 @@ class << ENV
|
|||||||
|
|
||||||
HomebrewEnvExtension::FC_FLAG_VARS.each {|key| self[key] = cflags}
|
HomebrewEnvExtension::FC_FLAG_VARS.each {|key| self[key] = cflags}
|
||||||
set_cpu_flags(HomebrewEnvExtension::FC_FLAG_VARS)
|
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
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user