 28fa8a7c97
			
		
	
	
		28fa8a7c97
		
			
		
	
	
	
	
		
			
			Add a new API inspired by discussion in https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given CPU option is supported by a version of macOS.
		
			
				
	
	
		
			10 lines
		
	
	
		
			156 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			156 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module Hardware
 | |
|   def self.oldest_cpu(version = MacOS.version)
 | |
|     if version >= :mojave
 | |
|       :nehalem
 | |
|     else
 | |
|       generic_oldest_cpu
 | |
|     end
 | |
|   end
 | |
| end
 |