diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 9ce298b05a..551b2a0dd6 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -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++"