aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMisty De Meo2013-10-07 00:02:46 -0700
committerMisty De Meo2013-10-07 00:02:46 -0700
commit8e7fcaab1e050576519703ad6ad575a15414ce37 (patch)
treec07f6fc41d5cbe37fa09d207c7b5afb50de8b858 /Library/Homebrew
parent61ca8721fb53a7e6d5a15f6fb2c00ed75813825d (diff)
downloadbrew-8e7fcaab1e050576519703ad6ad575a15414ce37.tar.bz2
formula_installer: change default bottle CxxStdlib
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 8bc09475c..4ac078d8d 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -149,13 +149,12 @@ class FormulaInstaller
end
if pour_bottle?
- # TODO We currently only support building with libstdc++ as
- # the default case, and all Apple libstdc++s are compatible, so
- # this default is sensible.
- # In the future we need to actually provide a way to read this from
- # the bottle, or update the default should that change
- # at some other point.
- stdlib_in_use = CxxStdlib.new(:libstdcxx, :clang)
+ # This assumes that bottles are built with
+ # a) the OS's default compiler, and
+ # b) the OS's default C++ stdlib
+ # This is probably accurate, but could possibly stand to be
+ # more robust.
+ stdlib_in_use = CxxStdlib.new(MacOS.default_cxx_stdlib, MacOS.default_compiler)
stdlib_in_use.check_dependencies(f, f.deps)
end