From d1e70498a693094c07a6fdba2f70ed3e2d7303a1 Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Wed, 11 Aug 2021 11:39:31 +0200 Subject: [PATCH] Fix clang support detection --- litex/soc/integration/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index 866c629e9..69b52239f 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -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: