diff options
| author | Misty De Meo | 2013-10-10 08:50:12 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-10-10 08:51:38 -0700 |
| commit | c24aca4c583c690d52df46f36d8e055b6bec956c (patch) | |
| tree | a4421dd154cc7404c35c4fcaba64895faf6881e6 | |
| parent | a6e2245732da34356b17666d78e760c4108fd6ac (diff) | |
| download | brew-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.
| -rw-r--r-- | Library/Homebrew/cxxstdlib.rb | 4 |
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) |
