aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-09-01 14:17:29 +0100
committerMax Howell2011-09-01 14:17:29 +0100
commit278c11fc9f24de552c1cda49a4c97f8ab51b886d (patch)
tree4f36c25eeadc26bd5a7580ff95ce293ee971817a /Library
parent60e2fad5bb4e3bcf6cf9c1f240ed95d42c30d30a (diff)
downloadhomebrew-278c11fc9f24de552c1cda49a4c97f8ab51b886d.tar.bz2
Actually obey --use-gcc flag
Schoolboy error.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index a34a318d2..b894c000d 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -317,17 +317,15 @@ Please take one of the following actions:
# if the user has set something that is tested here
# test for --flags first so that installs can be overridden on a per
- # install basis
+ # install basis. Then test for ENVs in inverse order to flags, this is
+ # sensible, trust me
if ARGV.include? '--use-gcc'
:gcc
elsif ARGV.include? '--use-llvm'
:llvm
elsif ARGV.include? '--use-clang'
:clang
- end
-
- # test for ENVs in inverse order to flags, this is sensible, trust me
- if self['HOMEBREW_USE_CLANG']
+ elsif self['HOMEBREW_USE_CLANG']
:clang
elsif self['HOMEBREW_USE_LLVM']
:llvm