mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

GitHub now nicely generates a documentation site for us at http://brew.sh/brew based on our docs folder. Optimise the output of this and the GitHub docs directory for readability and the various user groupings.
21 lines
932 B
Markdown
21 lines
932 B
Markdown
# Custom GCC and Cross Compilers
|
|
Homebrew depends on having an up-to-date version of Xcode because it comes with
|
|
specific versions of build tools e.g. `clang`.
|
|
|
|
Installing a custom version of GCC or `autotools` into the `$PATH` has the
|
|
potential to break lots of compiles so we prefer the Apple or Homebrew provided
|
|
compilers.
|
|
|
|
Cross-compilers based on GCC will typically be "keg-only" and therefore not
|
|
linked into the path by default.
|
|
|
|
Rather than merging in brews for either of these cases at this time, we're
|
|
listing them on this page. If you come up with a formula for a new version of
|
|
GCC or cross-compiler suite, please link it in here.
|
|
|
|
* Homebrew provides a `gcc` formula for use with Xcode 4.2+ or when needing
|
|
C++11 support on earlier versions.
|
|
* Homebrew provides older GCC formulae e.g. `gcc@4.8` and `gcc@6`
|
|
* [RISC-V](https://github.com/riscv/homebrew-riscv) provides the RISC-V
|
|
toolchain including binutils and gcc.
|