ENV/super: use Hardware::CPU.is_32_bit?
`Hardware.is_32_bit?` is deprecated.
This commit is contained in:
		
							parent
							
								
									3774b4641f
								
							
						
					
					
						commit
						c8d814f907
					
				@ -277,7 +277,7 @@ module Superenv
 | 
			
		||||
    self["HOMEBREW_ARCHFLAGS"] = Hardware::CPU.universal_archs.as_arch_flags
 | 
			
		||||
 | 
			
		||||
    # GCC doesn't accept "-march" for a 32-bit CPU with "-arch x86_64"
 | 
			
		||||
    if compiler != :clang && Hardware.is_32_bit?
 | 
			
		||||
    if compiler != :clang && Hardware::CPU.is_32_bit?
 | 
			
		||||
      self["HOMEBREW_OPTFLAGS"] = self["HOMEBREW_OPTFLAGS"].sub(
 | 
			
		||||
        /-march=\S*/,
 | 
			
		||||
        "-Xarch_#{Hardware::CPU.arch_32_bit} \\0"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user