aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cxxstdlib.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-10-10 08:50:12 -0700
committerMisty De Meo2013-10-10 08:51:38 -0700
commitc24aca4c583c690d52df46f36d8e055b6bec956c (patch)
treea4421dd154cc7404c35c4fcaba64895faf6881e6 /Library/Homebrew/cxxstdlib.rb
parenta6e2245732da34356b17666d78e760c4108fd6ac (diff)
downloadbrew-c24aca4c583c690d52df46f36d8e055b6bec956c.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/cxxstdlib.rb')
-rw-r--r--Library/Homebrew/cxxstdlib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb
index 06668e991..2b4ec5827 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)