brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
SharedEnvExtension#compiler
Outputs the current compiler. <pre># Do something only for clang if ENV.compiler == :clang # modify CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS in one go: ENV.append_to_cflags "-I ./missing/includes" end</pre>
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/extend/ENV/shared.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-SharedEnvExtension-compiler-for-pr
# Commit to gitgit add Library/Homebrew/extend/ENV/shared.rbgit commit -m "better docs for SharedEnvExtension#compiler"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-SharedEnvExtension-compiler-for-pr
hub pull-request
# Celebrate!