Skip to content

Commit 65eea6b

Browse files
xen0nchenhuacai
authored andcommitted
Makefile: Add loongarch target flag for Clang compilation
The LoongArch kernel is 64-bit and built with the soft-float ABI, hence the loongarch64-linux-gnusf target. (The "libc" part can affect the codegen of libcalls: other arches do not use a bare-metal target, and currently the only fully supported libc on LoongArch is glibc anyway.) See: https://lore.kernel.org/loongarch/CAKwvOdnimxv8oJ4mVY74zqtt1x7KTMrWvn2_T9x22SFDbU6rHQ@mail.gmail.com/ Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: WANG Xuerui <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 5a31ed4 commit 65eea6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/Makefile.clang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi
55
CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu
66
CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl
7+
CLANG_TARGET_FLAGS_loongarch := loongarch64-linux-gnusf
78
CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu
89
CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu
910
CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu

0 commit comments

Comments
 (0)