diff options
| author | Jack Nagel | 2015-06-27 20:04:45 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-06-27 20:04:45 -0400 |
| commit | 7690a00d0497cb2e5fbff9cfc364d8df0fc63c65 (patch) | |
| tree | 53c0dfac8213936bd72bb076505338eaeded75ac /Library/Homebrew/tab.rb | |
| parent | 0f745872dfb2fc18467fb03357619774412ba381 (diff) | |
| download | brew-7690a00d0497cb2e5fbff9cfc364d8df0fc63c65.tar.bz2 | |
Stdlib check should use the compiler used to build the bottle
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 7 |
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? |
