aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 432319bf8..37b0db2fd 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -155,11 +155,14 @@ class Tab < OpenStruct
Options.create(super)
end
+ def compiler
+ super || MacOS.default_compiler
+ end
+
def cxxstdlib
# Older tabs won't have these values, so provide sensible defaults
lib = stdlib.to_sym if stdlib
- cc = compiler || MacOS.default_compiler
- CxxStdlib.create(lib, cc.to_sym)
+ CxxStdlib.create(lib, compiler.to_sym)
end
def build_bottle?