]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/nolibc: add cc-option compatible with clang cross builds
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 7 Aug 2024 21:51:47 +0000 (23:51 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:22:15 +0000 (22:22 +0200)
commit1bd75aeb5446eb2b1351465e88a98fd784003250
tree5e7964f3d54b8c6bfa007c535810637b0cff521b
parentae574ae37059da67b90916f14b482bbce0c0ab01
selftests/nolibc: add cc-option compatible with clang cross builds

The cc-option macro from Build.include is not compatible with clang
cross builds, as it does not respect the "--target" and similar flags,
set up by Mekfile.include.

Provide a custom variant which works correctly.

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