Skip to content

Commit

Permalink
clang: remove pointless experimental targets code
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rossburton authored and kraj committed Jul 11, 2024
1 parent 1f77bff commit fc82c9c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions recipes-devtools/clang/clang_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)} \
"
Expand Down Expand Up @@ -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)}"
Expand Down

0 comments on commit fc82c9c

Please sign in to comment.