diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index bcdd060142..d42cbc07fe 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -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