selftests/nolibc: don't use libgcc when building with clang
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 7 Aug 2024 21:51:49 +0000 (23:51 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:22:16 +0000 (22:22 +0200)
commit801cf69ca03040a75ed73be263aa6f0fdcb8af5d
treec67b1f29f1a50645431f965794ea95d6e9d05888
parent27e458bbebdb0aa2aecce86d22c7f02b66e68ee1
selftests/nolibc: don't use libgcc when building with clang

The logic in clang to find the libgcc.a from a GCC toolchain for a
specific ABI does not work reliably and can lead to errors.
Instead disable libgcc when building with clang, as it's not needed
anyways.

Acked-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240807-nolibc-llvm-v2-13-c20f2f5fc7c2@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/Makefile