| 
									
										
										
										
											2021-02-03 21:28:11 +01:00
										 |  |  | # typed: strict | 
					
						
							|  |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CompilerSelector | 
					
						
							|  |  |  |   sig { returns(String) } | 
					
						
							| 
									
										
										
										
											2021-02-08 20:06:09 +01:00
										 |  |  |   def self.preferred_gcc | 
					
						
							| 
									
										
										
										
											2021-02-03 21:28:11 +01:00
										 |  |  |     # gcc-5 is the lowest gcc version we support on Linux. | 
					
						
							|  |  |  |     # gcc-5 is the default gcc in Ubuntu 16.04 (used for our CI) | 
					
						
							|  |  |  |     "gcc@5" | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |