diff options
| author | Adam Vandenberg | 2010-06-16 13:32:09 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-16 13:32:09 -0700 |
| commit | 2dbc6b977f092e0b5b3b72a4064b6e4a22358eb6 (patch) | |
| tree | c638e5729f7d9e1ba3e4aa9af6909ad2643a6697 /Library/Homebrew/extend | |
| parent | 76168e8e87e22af8037c66a6b06feefd136eeaf0 (diff) | |
| download | brew-2dbc6b977f092e0b5b3b72a4064b6e4a22358eb6.tar.bz2 | |
Use same LLVM binary to check build # as we do to build with.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index c0b6318a2..9ce298b05 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -20,11 +20,11 @@ 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. - prefix = `/usr/bin/xcode-select -print-path`.chomp - prefix = "/Developer" if prefix.to_s.empty? + xcode_path = `/usr/bin/xcode-select -print-path`.chomp + xcode_path = "/Developer" if xcode_prefix.to_s.empty? - ENV['CC'] = "#{prefix}/usr/bin/llvm-gcc" - ENV['CXX'] = "#{prefix}/usr/bin/llvm-g++" + ENV['CC'] = "#{xcode_path}/usr/bin/llvm-gcc" + ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++" cflags = %w{-O4} # link time optimisation baby! else # if we don't set these, many formula fail to build |
