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