| 
									
										
										
										
											2017-01-04 10:53:21 +00:00
										 |  |  | # Custom GCC and Cross Compilers
 | 
					
						
							| 
									
										
										
										
											2017-01-04 16:16:00 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-14 17:38:51 +01:00
										 |  |  | Homebrew depends on having an up-to-date version of Xcode because it comes with | 
					
						
							| 
									
										
										
										
											2017-03-18 17:45:12 -04:00
										 |  |  | specific versions of build tools, e.g. `clang`. | 
					
						
							| 
									
										
										
										
											2014-10-26 14:54:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-25 22:53:33 -04:00
										 |  |  | Installing a custom version of GCC or `autotools` into the `PATH` has the | 
					
						
							| 
									
										
										
										
											2017-03-18 17:45:12 -04:00
										 |  |  | potential to break lots of compiles so we prefer the Apple- or Homebrew-provided | 
					
						
							| 
									
										
										
										
											2016-09-14 17:38:51 +01:00
										 |  |  | 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-05 17:25:19 -04:00
										 |  |  | - Homebrew provides a `gcc` formula for use with Xcode 4.2+ or when needing | 
					
						
							| 
									
										
										
										
											2018-07-01 18:47:13 -04:00
										 |  |  |   C++11 support on earlier versions. | 
					
						
							| 
									
										
										
										
											2019-01-08 19:13:46 +00:00
										 |  |  | - Homebrew provides older GCC formulae, e.g. `gcc@7` | 
					
						
							| 
									
										
										
										
											2018-10-05 17:23:22 -04:00
										 |  |  | - Homebrew provides the LLVM Clang, which is bundled with the `llvm` formula. | 
					
						
							| 
									
										
										
										
											2018-07-05 17:25:19 -04:00
										 |  |  | - [RISC-V](https://github.com/riscv/homebrew-riscv) provides the RISC-V | 
					
						
							|  |  |  |   toolchain including binutils and GCC. |