development_tools: fix GCC 10 version detection
This commit is contained in:
		
							parent
							
								
									9023667f8c
								
							
						
					
					
						commit
						9f4dbd4008
					
				@ -78,7 +78,7 @@ class DevelopmentTools
 | 
			
		||||
        path = HOMEBREW_PREFIX/"opt/gcc/bin"/cc
 | 
			
		||||
        path = locate(cc) unless path.exist?
 | 
			
		||||
        version = if path &&
 | 
			
		||||
                     build_version = `#{path} --version`[/gcc(?:(?:-\d(?:\.\d)?)? \(.+\))? (\d+\.\d\.\d)/, 1]
 | 
			
		||||
                     build_version = `#{path} --version`[/gcc(?:(?:-\d+(?:\.\d)?)? \(.+\))? (\d+\.\d\.\d)/, 1]
 | 
			
		||||
          Version.new build_version
 | 
			
		||||
        else
 | 
			
		||||
          Version::NULL
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user