Merge pull request #994 from antmicro/fix-clang-support-detection

Fix clang support detection
This commit is contained in:
enjoy-digital 2021-08-13 10:21:13 +02:00 committed by GitHub
commit 17b8a74735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)) clang = bool(int(clang))
else: else:
clang = None clang = None
if not hasattr(cpu, "clang_triple"): if cpu.clang_triple is None:
if clang: if clang:
raise ValueError(cpu.name + "not supported with clang.") raise ValueError(cpu.name + " is not supported with clang.")
else: else:
clang = False clang = False
else: else: