]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
llvm: Use LoongArch as host for LLVM architecture
authorXiaotian Wu <wuxiaotian@loongson.cn>
Fri, 7 Mar 2025 09:46:44 +0000 (17:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2025 11:13:21 +0000 (11:13 +0000)
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/llvm/llvm_19.1.7.bb

index 029a1fb4c50c9868c5816f275c8dd28371a605c2..8e861939e073535573f269bb094936284e8a7974 100644 (file)
@@ -43,6 +43,7 @@ def get_llvm_arch(bb, d, arch_var):
     elif re.match(r'armeb$', a):                        return 'ARM'
     elif re.match(r'aarch64$', a):                      return 'AArch64'
     elif re.match(r'aarch64_be$', a):                   return 'AArch64'
+    elif re.match(r'loongarch(32|64|)$', a):            return 'LoongArch'
     elif re.match(r'mips(isa|)(32|64|)(r6|)(el|)$', a): return 'Mips'
     elif re.match(r'riscv(32|64)(eb|)$', a):            return 'RISCV'
     elif re.match(r'p(pc|owerpc)(|64)', a):             return 'PowerPC'