From 6c86d358a3d2a4f2bf011b275070a1141b474c12 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 30 Nov 2011 09:28:05 -0600 Subject: [PATCH] ENV: fix llvm-gcc regexp Fixes: Homebrew/homebrew#8890. Closes Homebrew/homebrew#8893. Signed-off-by: Charlie Sharpsteen --- Library/Homebrew/extend/ENV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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