Fix clang support detection

This commit is contained in:
Michal Sieron 2021-08-11 11:39:31 +02:00
parent 79ac09316a
commit d1e70498a6
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ def get_cpu_mak(cpu, compile_software):
clang = bool(int(clang))
else:
clang = None
if not hasattr(cpu, "clang_triple"):
if cpu.clang_triple is None:
if clang:
raise ValueError(cpu.name + "not supported with clang.")
raise ValueError(cpu.name + " is not supported with clang.")
else:
clang = False
else: