diff options
| -rw-r--r-- | Library/Homebrew/cxxstdlib.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 0fc9beacc..d04a86db0 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -35,7 +35,7 @@ class CxxStdlib end def check_dependencies(formula, deps) - unless formula.class.cxxstdlib.include? :skip + unless formula.skip_cxxstdlib_check? 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 diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 09dee3cbe..f7950bff0 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -247,6 +247,10 @@ class Formula self.class.skip_clean_paths.include? to_check end + def skip_cxxstdlib_check? + self.class.cxxstdlib.include?(:skip) + end + # yields self with current working directory set to the uncompressed tarball def brew validate_attributes :name, :version |
