Skip to content

Commit

Permalink
ENV: fix llvm-gcc regexp
Browse files Browse the repository at this point in the history
Fixes: Homebrew#8890.
Closes Homebrew#8893.

Signed-off-by: Charlie Sharpsteen <[email protected]>
  • Loading branch information
mistydemeo authored and Sharpie committed Dec 1, 2011
1 parent 7cbfb05 commit 5b1968f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ENV.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def gcc args = {}
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
Expand Down

0 comments on commit 5b1968f

Please sign in to comment.