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
commitcb873d0833074f4477424a984c08311ef1293334 (patch)
treeaf9a2ea9e67910873cbd5008145b4620436fef73 /Library
parent2716ed6d2610a6d0877a2d4015c6e14153424d55 (diff)
downloadbrew-cb873d0833074f4477424a984c08311ef1293334.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