From c24aca4c583c690d52df46f36d8e055b6bec956c Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 10 Oct 2013 08:50:12 -0700 Subject: [PATCH] CxxStdlib: don't check buildtime deps Otherwise it's possible that certain buildtime dependencies, that won't be linked against, will block a build. See Homebrew/homebrew#23115. --- Library/Homebrew/cxxstdlib.rb | 4 ++++ 1 file changed, 4 insertions(+) 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)