Skip to content

Commit 624c60f

Browse files
gctuckershuahkh
authored andcommitted
selftests: fix LLVM build for i386 and x86_64
Add missing cases for the i386 and x86_64 architectures when determining the LLVM target for building kselftest. Fixes: 795285e ("selftests: Fix clang cross compilation") Signed-off-by: Guillaume Tucker <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 2da789c commit 624c60f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/lib.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ endif
1010
CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi
1111
CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu
1212
CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl
13+
CLANG_TARGET_FLAGS_i386 := i386-linux-gnu
1314
CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu
1415
CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu
1516
CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu
1617
CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu
1718
CLANG_TARGET_FLAGS_s390 := s390x-linux-gnu
1819
CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu
20+
CLANG_TARGET_FLAGS_x86_64 := x86_64-linux-gnu
1921
CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(ARCH))
2022

2123
ifeq ($(CROSS_COMPILE),)

0 commit comments

Comments
 (0)