From fc82c9cd0db456c9614336b1c720391b9484c264 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 11 Jul 2024 16:33:30 +0100 Subject: [PATCH] clang: remove pointless experimental targets code LLVM_EXPERIMENTAL_TARGETS_TO_BUILD is appended with the value of get_clang_experimental_target_arch() which is just the value of get_clang_experimental_arch which is always the empty string despite appearances. Thus none of this is useful, remove it. Signed-off-by: Ross Burton --- recipes-devtools/clang/clang_git.bb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index aeba404f..ad68c3e4 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb @@ -27,11 +27,6 @@ inherit cmake cmake-native pkgconfig python3native python3targetconfig OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" -def get_clang_experimental_arch(bb, d, arch_var): - import re - a = d.getVar(arch_var) - return "" - def get_clang_arch(bb, d, arch_var): import re a = d.getVar(arch_var) @@ -55,9 +50,6 @@ def get_clang_host_arch(bb, d): def get_clang_target_arch(bb, d): return get_clang_arch(bb, d, 'TARGET_ARCH') -def get_clang_experimental_target_arch(bb, d): - return get_clang_experimental_arch(bb, d, 'TARGET_ARCH') - PACKAGECONFIG_CLANG_COMMON = "build-id eh libedit rtti shared-libs \ ${@bb.utils.contains('TC_CXX_RUNTIME', 'llvm', 'compiler-rt libcplusplus libomp unwindlib', '', d)} \ " @@ -121,7 +113,6 @@ LLVM_BUILD_TOOLS;LLVM_USE_HOST_TOOLS;LLVM_CONFIG_PATH;\ LLVM_TARGETS_TO_BUILD ?= "AMDGPU;AArch64;ARM;BPF;Mips;PowerPC;RISCV;X86;LoongArch" LLVM_EXPERIMENTAL_TARGETS_TO_BUILD ?= "" -LLVM_EXPERIMENTAL_TARGETS_TO_BUILD:append = ";${@get_clang_experimental_target_arch(bb, d)}" HF = "" HF:class-target = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}"