2014-10-26 14:54:36 +00:00
|
|
|
# Custom GCC and cross compilers
|
2016-09-14 17:38:51 +01:00
|
|
|
Homebrew depends on having an up-to-date version of Xcode because it comes with
|
|
|
|
specific versions of build tools e.g. `clang`.
|
2014-10-26 14:54:36 +00:00
|
|
|
|
2016-09-14 17:38:51 +01:00
|
|
|
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.
|
2014-10-26 14:54:36 +00:00
|
|
|
|
2016-09-14 17:38:51 +01:00
|
|
|
Cross-compilers based on GCC will typically be "keg-only" and therefore not
|
|
|
|
linked into the path by default.
|
2014-10-26 14:54:36 +00:00
|
|
|
|
2016-09-14 17:38:51 +01:00
|
|
|
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.
|
2014-10-26 14:54:36 +00:00
|
|
|
|
2016-09-14 17:38:51 +01:00
|
|
|
* Homebrew provides a `gcc` formula for use with Xcode 4.2+ or when needing
|
|
|
|
C++11 support on earlier versions.
|
|
|
|
* [Homebrew-versions](https://github.com/homebrew/homebrew-versions) provides an
|
|
|
|
up to date GCC duplicates e.g. `brew install homebrew/versions/gcc48`
|
|
|
|
* [RISC-V](https://github.com/riscv/homebrew-riscv) provides the RISC-V
|
|
|
|
toolchain including binutils and gcc.
|