aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-13 16:22:57 -0500
committerJack Nagel2014-05-13 16:22:57 -0500
commit07aa3093001b58a40eab100b1ffa99a097850337 (patch)
tree9e8b9a42647d2feb6af1701b14ada0216ef1e896 /Library
parenta76491e6a4e1efe4d87667e8a1dda111855cce80 (diff)
downloadhomebrew-07aa3093001b58a40eab100b1ffa99a097850337.tar.bz2
Check value of compiler rather than HOMEBREW_CC
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index c976d55a5..20b4a3e6c 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -278,15 +278,11 @@ module Superenv
end
def libcxx
- if self['HOMEBREW_CC'] == 'clang'
- append 'HOMEBREW_CCCFG', "g", ''
- end
+ append "HOMEBREW_CCCFG", "g", "" if compiler == :clang
end
def libstdcxx
- if self['HOMEBREW_CC'] == 'clang'
- append 'HOMEBREW_CCCFG', "h", ''
- end
+ append "HOMEBREW_CCCFG", "h", "" if compiler == :clang
end
def refurbish_args