aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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