Fix exception when installing with --use-llvm

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chris Hoffman 2010-06-17 10:53:23 -05:00 committed by Adam Vandenberg
parent 1d81d6b393
commit 154d0fa92d

View File

@ -21,7 +21,7 @@ module HomebrewEnvExtension
if MACOS_VERSION >= 10.6 and (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm')
# you can install Xcode wherever you like you know.
xcode_path = `/usr/bin/xcode-select -print-path`.chomp
xcode_path = "/Developer" if xcode_prefix.to_s.empty?
xcode_path = "/Developer" if xcode_path.to_s.empty?
ENV['CC'] = "#{xcode_path}/usr/bin/llvm-gcc"
ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++"