Fix exception when installing with --use-llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
1d81d6b393
commit
154d0fa92d
@ -21,7 +21,7 @@ module HomebrewEnvExtension
|
|||||||
if MACOS_VERSION >= 10.6 and (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm')
|
if MACOS_VERSION >= 10.6 and (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm')
|
||||||
# you can install Xcode wherever you like you know.
|
# you can install Xcode wherever you like you know.
|
||||||
xcode_path = `/usr/bin/xcode-select -print-path`.chomp
|
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['CC'] = "#{xcode_path}/usr/bin/llvm-gcc"
|
||||||
ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++"
|
ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user