Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							2db59be452 
							
						 
					 
					
						
						
							
							Less code in begin/rescue block  
						
						
						
						
					 
					
						2015-06-21 21:18:23 -04:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							1bba5fd88a 
							
						 
					 
					
						
						
							
							Pass full match to warn_about_non_apple_gcc  
						
						
						
						
					 
					
						2015-06-21 21:18:23 -04:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							09f8c54f83 
							
						 
					 
					
						
						
							
							Move some constants from env to compiler constants  
						
						
						
						
					 
					
						2015-06-19 21:38:39 -04:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							bf4dc7449b 
							
						 
					 
					
						
						
							
							Clear GOPATH and GOROOT in build environment  
						
						... 
						
						
						
						Fixes  Homebrew/homebrew#37936 . 
					
						2015-05-14 20:04:45 -04:00 
						 
				 
			
				
					
						
							
							
								なつき 
							
						 
					 
					
						
						
						
						
							
						
						
							6181a786c0 
							
						 
					 
					
						
						
							
							compilers: support gcc 5  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#39470 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2015-05-08 22:23:30 -04:00 
						 
				 
			
				
					
						
							
							
								Viktor Szakats 
							
						 
					 
					
						
						
						
						
							
						
						
							fc2818b7a5 
							
						 
					 
					
						
						
							
							Use more https in urls and updated some lost links  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#35531 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2015-01-04 02:13:16 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							6096ec9568 
							
						 
					 
					
						
						
							
							Unset LIBRARY_PATH before builds  
						
						... 
						
						
						
						See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html 
Closes  Homebrew/homebrew-versions#592 . 
						
						
					 
					
						2014-12-17 14:40:05 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							662f887e9a 
							
						 
					 
					
						
						
							
							Call reset in the superclass implementation of setup_build_environment  
						
						
						
						
					 
					
						2014-09-18 16:44:20 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							c5f2f6b539 
							
						 
					 
					
						
						
							
							Make --cc override the compiler selector  
						
						
						
						
					 
					
						2014-09-18 15:50:54 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							04dae13ae7 
							
						 
					 
					
						
						
							
							Replace CompilerQueue with predetermined priority lists  
						
						
						
						
					 
					
						2014-09-18 15:50:54 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							ae88549797 
							
						 
					 
					
						
						
							
							Remove fails_with? from the formula instance  
						
						
						
						
					 
					
						2014-09-18 15:50:54 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							b544f3e5f1 
							
						 
					 
					
						
						
							
							Clear GOBIN in environment setup  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#32014 . 
					
						2014-09-07 18:39:00 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							5a2ae61e66 
							
						 
					 
					
						
						
							
							Add another TODO  
						
						
						
						
					 
					
						2014-08-03 15:28:51 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							fded4d0385 
							
						 
					 
					
						
						
							
							Remove an is_a check  
						
						
						
						
					 
					
						2014-08-03 10:47:47 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							a5895ad1fe 
							
						 
					 
					
						
						
							
							Check nil? || empty? instead of to_s.empty?  
						
						
						
						
					 
					
						2014-07-18 11:43:37 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							3439703c65 
							
						 
					 
					
						
						
							
							Drop pointless to_s call  
						
						
						
						
					 
					
						2014-07-18 11:43:37 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							fe0c018a1a 
							
						 
					 
					
						
						
							
							No need to cache lookup that is only done once  
						
						
						
						
					 
					
						2014-07-13 10:50:56 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							32d84377d5 
							
						 
					 
					
						
						
							
							Move constants so we don't have to load all of ENV to get them  
						
						
						
						
					 
					
						2014-07-02 21:58:43 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							20d544085a 
							
						 
					 
					
						
						
							
							Use a more descriptive variable name  
						
						
						
						
					 
					
						2014-06-22 18:43:14 -05:00 
						 
				 
			
				
					
						
							
							
								Shaun Jackman 
							
						 
					 
					
						
						
						
						
							
						
						
							42c20b0979 
							
						 
					 
					
						
						
							
							Move the compiler-selecting methods to ENV/shared  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#30210 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2014-06-22 18:30:15 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							4d9d01893e 
							
						 
					 
					
						
						
							
							Move deprecated Formula class methods to compat  
						
						... 
						
						
						
						These have all been moved to Formulary. 
						
						
					 
					
						2014-06-22 15:03:17 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							6e616b29c5 
							
						 
					 
					
						
						
							
							Use a || b  
						
						
						
						
					 
					
						2014-06-03 09:43:27 -05:00 
						 
				 
			
				
					
						
							
							
								Shaun Jackman 
							
						 
					 
					
						
						
						
						
							
						
						
							bd682d5519 
							
						 
					 
					
						
						
							
							Treat HOMEBREW_CC the same as --cc  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#29762 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2014-06-03 09:43:27 -05:00 
						 
				 
			
				
					
						
							
							
								Shaun Jackman 
							
						 
					 
					
						
						
						
						
							
						
						
							6e56009217 
							
						 
					 
					
						
						
							
							HOMEBREW_CC: Remove COMPILER_ALIASES  
						
						... 
						
						
						
						Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
						
						
					 
					
						2014-06-03 09:43:21 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							6eb220d78f 
							
						 
					 
					
						
						
							
							Share code for sanitizing ENV between both build environments  
						
						
						
						
					 
					
						2014-05-26 14:10:24 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							f6fda5651b 
							
						 
					 
					
						
						
							
							Remove deprecated --use-{gcc,llvm,clang}  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#29380 . 
					
						2014-05-19 10:37:45 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							16c073a153 
							
						 
					 
					
						
						
							
							Remove hardcoded reference to ENV  
						
						
						
						
					 
					
						2014-05-18 14:41:49 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							930cf4c768 
							
						 
					 
					
						
						
							
							Add accessor for HOMEBREW_CC  
						
						
						
						
					 
					
						2014-05-18 14:34:31 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							ff9bbe941b 
							
						 
					 
					
						
						
							
							ENV.cc= and ENV.cxx= are private  
						
						
						
						
					 
					
						2014-05-18 14:34:31 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							9e8d419070 
							
						 
					 
					
						
						
							
							Use a case statement  
						
						
						
						
					 
					
						2014-05-18 14:23:45 -05:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							858da0063d 
							
						 
					 
					
						
						
							
							Allow disabling arch flag filtering  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#17352 . 
					
						2014-05-14 00:00:59 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							8c426e8207 
							
						 
					 
					
						
						
							
							ENV/shared: fix gcc versions edge case.  
						
						
						
						
					 
					
						2014-05-06 22:17:59 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							c92a16e2ce 
							
						 
					 
					
						
						
							
							shared: refactor gcc_version_formula.  
						
						... 
						
						
						
						Avoid throwing unnecessary exceptions by checking for paths existing and
creating formulae as late as possible. Additionally use instance
variables for some caching. 
						
						
					 
					
						2014-05-06 16:45:50 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							1b0647d747 
							
						 
					 
					
						
						
							
							shared: don't use Formula.factory unnecessarily.  
						
						... 
						
						
						
						Instead check if the path exists by using opt. 
						
						
					 
					
						2014-05-06 16:45:50 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							116c2b06a8 
							
						 
					 
					
						
						
							
							ENV/shared: handle untapped e.g. gcc48 formula.  
						
						... 
						
						
						
						In this case we need to handle the throwing on an exception when
attempting to initialize the gcc48 Formula object.
This initialization should be unnecessary if the core GCC is already
installed and rescued if not. 
						
						
					 
					
						2014-04-30 12:38:22 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							2c3b04fb26 
							
						 
					 
					
						
						
							
							ENV/shared: use homebrew/versions GCC if installed  
						
						... 
						
						
						
						Closes  Homebrew/homebrew#28820 . 
					
						2014-04-29 08:51:56 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							55d277c335 
							
						 
					 
					
						
						
							
							Support core GCC formula as a GCC compiler.  
						
						... 
						
						
						
						It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.
References Homebrew/homebrew#28418 . 
						
						
					 
					
						2014-04-23 08:10:48 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							593702c70b 
							
						 
					 
					
						
						
							
							shared: don't warn about non-Apple compilers now.  
						
						
						
						
					 
					
						2014-04-23 08:10:48 +01:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							dc3691eccd 
							
						 
					 
					
						
						
							
							Clean up some concatentation inside interpolation  
						
						
						
						
					 
					
						2014-04-04 22:02:48 -05:00 
						 
				 
			
				
					
						
							
							
								Camillo Lugaresi 
							
						 
					 
					
						
						
						
						
							
						
						
							cbd14fde1e 
							
						 
					 
					
						
						
							
							Correctly find Homebrew-installed fortran  
						
						... 
						
						
						
						Fixes  Homebrew/homebrew#26338 .
Closes  Homebrew/homebrew#26352 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com> 
					
						2014-02-02 14:13:53 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							996c7bd7d1 
							
						 
					 
					
						
						
							
							ENV: add method to prepend and create a PATH.  
						
						
						
						
					 
					
						2014-01-04 13:19:20 +00:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							65a00e213b 
							
						 
					 
					
						
						
							
							Make CompilerSelectionError an InstallationError  
						
						... 
						
						
						
						Fixes  Homebrew/homebrew#19962 . 
					
						2013-12-03 22:16:37 -06:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							ea992b02e5 
							
						 
					 
					
						
						
							
							Fix typo  
						
						
						
						
					 
					
						2013-12-02 01:16:50 -06:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							98f25e4407 
							
						 
					 
					
						
						
							
							Yielded value is not used  
						
						
						
						
					 
					
						2013-12-02 00:16:48 -06:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							0581532fdc 
							
						 
					 
					
						
						
							
							Require Formula before using it  
						
						
						
						
					 
					
						2013-11-27 17:30:21 -06:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							45e7f0ccb0 
							
						 
					 
					
						
						
							
							Allow older non-Apple GCCs to build things  
						
						
						
						
					 
					
						2013-10-16 18:43:56 -07:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							48dde74503 
							
						 
					 
					
						
						
							
							Move ld64 into SharedEnvExtension  
						
						... 
						
						
						
						Superenv is being tested on Xcode 3.1.4, so this needs to be supported
in both ENVs, not just stdenv. 
						
						
					 
					
						2013-09-28 17:22:27 -07:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							497ccdc41c 
							
						 
					 
					
						
						
							
							ENV: Ensure @compiler is set  
						
						... 
						
						
						
						If @compiler isn't set/checked by ENV.compiler and the ENV.clang/etc.
methods, ENV.compiler may return unexpected results after fails_with
picks a fallback compiler.
See Homebrew/homebrew#22674 . 
						
						
					 
					
						2013-09-19 23:36:15 -07:00 
						 
				 
			
				
					
						
							
							
								Misty De Meo 
							
						 
					 
					
						
						
						
						
							
						
						
							1ae81f0bf7 
							
						 
					 
					
						
						
							
							Move CompilerSelector logic into build env setup  
						
						... 
						
						
						
						This moves the CompilerSelector fails_with logic into the build
environment setup, making the compiler selection available before
performing actions that depends on knowing what the compiler is, e.g.
setting up PATH.
ENV.setup_build_environment now optionally takes a Formula argument
to provide the information necessary to do the fails_with, and the new
ENV.validate_cc! extracts the fails_with logic from Build.install. 
						
						
					 
					
						2013-09-17 12:43:38 -07:00 
						 
				 
			
				
					
						
							
							
								Jack Nagel 
							
						 
					 
					
						
						
						
						
							
						
						
							7e079fc37d 
							
						 
					 
					
						
						
							
							ENV: convert values to strings in cc setters  
						
						
						
						
					 
					
						2013-09-03 10:07:53 -05:00