diff mbox series

[1/2] common-clang.inc: fix undefined name in get_clang_arch

Message ID 20260629110619.530623-2-joaomarcos.costa@bootlin.com
State Under Review
Headers show
Series clang: misc fixes | expand

Commit Message

João Marcos Costa June 29, 2026, 11:06 a.m. UTC
Replace arch_val by arch_var, thus fixing:

NameError: name 'arch_val' is not defined. Did you mean: 'arch_var'?

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
---
 meta/recipes-devtools/clang/common-clang.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/clang/common-clang.inc b/meta/recipes-devtools/clang/common-clang.inc
index ed628008e0..9018094419 100644
--- a/meta/recipes-devtools/clang/common-clang.inc
+++ b/meta/recipes-devtools/clang/common-clang.inc
@@ -35,7 +35,7 @@  def get_clang_arch(bb, d, arch_var):
     elif re.match('p(pc|owerpc)(|64)', a):             return 'PowerPC'
     elif re.match('loongarch64$', a):                  return 'LoongArch'
     else:
-        bb.fatal("Unhandled architecture %s" % arch_val)
+        bb.fatal("Unhandled architecture %s" % arch_var)
         return ""
 
 def get_clang_host_arch(bb, d):