aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-10-07 00:25:26 -0700
committerMisty De Meo2013-10-07 00:25:26 -0700
commitf40af36f909a1ab0a6c409254f5944fe477392ae (patch)
tree4a2ca405b9a5ba0f923013c89ace54964eb87d21 /Library/Homebrew/tab.rb
parentf05865ba9b3151a467e511627989db89aec93d2d (diff)
downloadhomebrew-f40af36f909a1ab0a6c409254f5944fe477392ae.tar.bz2
Tab#cxxstdlib: don't try to convert nil to_sym
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index caf261a28..239820c5f 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -97,9 +97,9 @@ class Tab < OpenStruct
def cxxstdlib
# Older tabs won't have these values, so provide sensible defaults
- lib = stdlib
+ lib = stdlib.to_sym if stdlib
cc = compiler || MacOS.default_compiler
- CxxStdlib.new(lib.to_sym, cc.to_sym)
+ CxxStdlib.new(lib, cc.to_sym)
end
def to_json