Skip to content

Commit 72fae63

Browse files
bjorn-rivosanakryiko
authored andcommitted
selftests/bpf: Enable lld usage for RISC-V
RISC-V has proper lld support. Use that, similar to what x86 does, for urandom_read et al. Signed-off-by: Björn Töpel <bjorn@rivosinc.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20231004122721.54525-3-bjorn@kernel.org
1 parent 97a79e5 commit 72fae63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ $(OUTPUT)/%:%.c
188188
$(Q)$(LINK.c) $^ $(LDLIBS) -o $@
189189

190190
# LLVM's ld.lld doesn't support all the architectures, so use it only on x86
191-
ifeq ($(SRCARCH),x86)
191+
ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 riscv))
192192
LLD := lld
193193
else
194194
LLD := ld

0 commit comments

Comments
 (0)