brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Formula.fails_with

Marks the {Formula} as failing with a particular compiler so it will fall back to others.
For Apple compilers, this should be in the format:
<pre>fails_with :clang do
  build 600
  cause "multiple configure and compile errors"
end</pre>

The block may be omitted, and if present the build may be omitted;
if so, then the compiler will be blacklisted for *all* versions.

`major_version` should be the major release number only, for instance
'4.8' for the GCC 4.8 series (4.8.0, 4.8.1, etc.).
If `version` or the block is omitted, then the compiler will be
blacklisted for all compilers in that series.

For example, if a bug is only triggered on GCC 4.8.1 but is not
encountered on 4.8.2:

<pre>fails_with :gcc => '4.8' do
  version '4.8.1'
end</pre>

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/formula.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Formula-fails_with-for-pr


# Commit to git

git add Library/Homebrew/formula.rbgit commit -m "better docs for Formula.fails_with"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Formula-fails_with-for-pr

hub pull-request


# Celebrate!