]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/nolibc: add support for LLVM= parameter
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 7 Aug 2024 21:51:46 +0000 (23:51 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:22:14 +0000 (22:22 +0200)
commitae574ae37059da67b90916f14b482bbce0c0ab01
tree28e9c939dd6cc120e4113368262b66871ec783f7
parent1a1200b66fd52dca33255270a09a093592c3b877
selftests/nolibc: add support for LLVM= parameter

Makefile.include can modify CC and CFLAGS for usage with clang.
Make use of it.

Makefile.include is currently used to handle the O= variable.
This is incompatible with the LLVM= handling as for O= it has to be
included as early as possible, while for LLVM= it needs to be included
after CFLAGS are set up.

To avoid this incompatibility, switch the O= handling to custom logic.

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