 73ba9b3d88
			
		
	
	
		73ba9b3d88
		
	
	
	
	
		
			
			Define MacOS.version, MacOS.full_version, and MacOS::Xcode.version to Version::NULL on Linux so that brew readall succeeds and Homebrew/brew can tap Homebrew/core on Linux.
		
			
				
	
	
		
			29 lines
		
	
	
		
			427 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			427 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module OS
 | |
|   # Define OS::Mac on Linux for formula API compatibility.
 | |
|   module Mac
 | |
|     module_function
 | |
| 
 | |
|     ::MacOS = self # rubocop:disable Naming/ConstantName
 | |
| 
 | |
|     def prefer_64_bit?
 | |
|       Hardware::CPU.is_64_bit?
 | |
|     end
 | |
| 
 | |
|     def version
 | |
|       Version::NULL
 | |
|     end
 | |
| 
 | |
|     def full_version
 | |
|       Version::NULL
 | |
|     end
 | |
| 
 | |
|     module Xcode
 | |
|       module_function
 | |
| 
 | |
|       def version
 | |
|         Version::NULL
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |