]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: add __nolibc_has_feature()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 10:46:18 +0000 (12:46 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 12:17:46 +0000 (14:17 +0200)
commit8399f14666688be8d84cb3ccbec6ee790c020b36
tree3964b79b76cf942b0ad5efe2f233ee1537e4e409
parent60ccc16f530a480abfde399bf80779e5b021b3fe
tools/nolibc: add __nolibc_has_feature()

Certain compiler features are signaled via the __has_feature()
preprocessor builtin.

Add a nolibc wrapper for it, similar to __nolibc_has_attribute().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250419-nolibc-ubsan-v2-1-060b8a016917@weissschuh.net
tools/include/nolibc/compiler.h