Fix false detection of llvm-amdgpu as llvm and llvm-doe (#40113)
This commit is contained in:
		@@ -252,6 +252,8 @@ def determine_version(cls, exe):
 | 
			
		||||
            output = compiler("--version", output=str, error=str)
 | 
			
		||||
            if "Apple" in output:
 | 
			
		||||
                return None
 | 
			
		||||
            if "AMD" in output:
 | 
			
		||||
                return None
 | 
			
		||||
            match = version_regex.search(output)
 | 
			
		||||
            if match:
 | 
			
		||||
                return match.group(match.lastindex)
 | 
			
		||||
 
 | 
			
		||||
@@ -597,6 +597,8 @@ def determine_version(cls, exe):
 | 
			
		||||
            output = compiler("--version", output=str, error=str)
 | 
			
		||||
            if "Apple" in output:
 | 
			
		||||
                return None
 | 
			
		||||
            if "AMD" in output:
 | 
			
		||||
                return None
 | 
			
		||||
            match = version_regex.search(output)
 | 
			
		||||
            if match:
 | 
			
		||||
                return match.group(match.lastindex)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user