diff options
| author | Adam Vandenberg | 2011-06-16 20:46:55 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-16 20:58:05 -0700 |
| commit | 7a9c72cf626d9b1a4acc6efb1e43da2811743583 (patch) | |
| tree | b13b6ac6a51e6e67b5abd6aacf017e3683e3560b | |
| parent | d1aac6bc0328ea9ab3cc8bf379d7f1cddad3b9f3 (diff) | |
| download | brew-7a9c72cf626d9b1a4acc6efb1e43da2811743583.tar.bz2 | |
Allow HOMEBREW_USE_CLANG env var
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index b9a45cc42..ee2849da2 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -18,7 +18,7 @@ module HomebrewEnvExtension self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}" end - if MACOS_VERSION >= 10.6 and ARGV.include? '--use-clang' + if MACOS_VERSION >= 10.6 and (self['HOMEBREW_USE_CLANG'] or ARGV.include? '--use-clang') self['CC'] = "#{MacOS.xcode_prefix}/usr/bin/clang" self['CXX'] = "#{MacOS.xcode_prefix}/usr/bin/clang++" cflags = ['-O3'] # -O4 makes the linker fail on some formulae |
