ENV: fix llvm-gcc regexp

Fixes: Homebrew/homebrew#8890.
Closes Homebrew/homebrew#8893.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Misty De Meo 2011-11-30 09:28:05 -06:00 committed by Charlie Sharpsteen
parent 6f83e20f49
commit 6c86d358a3

View File

@ -135,7 +135,7 @@ module HomebrewEnvExtension
raise "GCC could not be found" if args[:force] and not File.exist? ENV['CC'] \
or (File.symlink? ENV['CC'] \
and File.readlink(ENV['CC']) =~ 'llvm')
and File.readlink(ENV['CC']) =~ /llvm/)
end
alias_method :gcc_4_2, :gcc