formula.rb: Fix use of xcode_version in LLVM check

Should be `MacOS.xcode_version`.

Fixes Homebrew/homebrew#8966.
This commit is contained in:
Charlie Sharpsteen 2011-12-04 10:12:40 -08:00
parent ec71780612
commit 94f84544c6

View File

@ -351,7 +351,7 @@ class Formula
that we can update the formula accordingly. Thanks! that we can update the formula accordingly. Thanks!
EOS EOS
puts puts
if xcode_version < "4.2" if MacOS.xcode_version < "4.2"
puts "If it doesn't work you can: brew install --use-gcc" puts "If it doesn't work you can: brew install --use-gcc"
else else
puts "If it doesn't work you can try: brew install --use-clang" puts "If it doesn't work you can try: brew install --use-clang"