diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 06668e991d..2b4ec58278 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -34,6 +34,10 @@ class CxxStdlib def check_dependencies(formula, deps) deps.each do |dep| + # Software is unlikely to link against anything from its buildtime deps, + # so it doesn't matter at all if they link against different C++ stdlibs + next if dep.tags.include? :build + dep_stdlib = Tab.for_formula(dep.to_formula).cxxstdlib if !compatible_with? dep_stdlib raise IncompatibleCxxStdlibs.new(formula, dep, dep_stdlib, self)