Remove hardcoded reference to ENV

This commit is contained in:
Jack Nagel 2014-05-18 14:40:44 -05:00
parent 930cf4c768
commit 16c073a153

View File

@ -113,7 +113,7 @@ module SharedEnvExtension
# an alternate compiler, altering the value of environment variables. # an alternate compiler, altering the value of environment variables.
# If no valid compiler is found, raises an exception. # If no valid compiler is found, raises an exception.
def validate_cc!(formula) def validate_cc!(formula)
if formula.fails_with? ENV.compiler if formula.fails_with? compiler
send CompilerSelector.new(formula).compiler send CompilerSelector.new(formula).compiler
end end
end end