summaryrefslogtreecommitdiff
path: root/tools/include/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-11-05 13:07:05 +0300
committerThomas Weißschuh <linux@weissschuh.net>2023-12-12 00:38:20 +0300
commit48946c5aa7a848c7dfc2151267af92956f492f58 (patch)
tree1cf0451d7fd7bdb33bda542d3af65f83cd075f1e /tools/include/nolibc
parent91f16451593b4709036e72a6aaccadc16d87a339 (diff)
downloadlinux-48946c5aa7a848c7dfc2151267af92956f492f58.tar.xz
tools/nolibc: error out on unsupported architecture
When an architecture is unsupported arch.h would silently continue. This leads to a lot of followup errors because my_syscallX() is not defined and the startup code is missing. Avoid these confusing errors and fail the build early with a clear error message and location. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r--tools/include/nolibc/arch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/nolibc/arch.h b/tools/include/nolibc/arch.h
index e276fb0680af..2f72ccac0378 100644
--- a/tools/include/nolibc/arch.h
+++ b/tools/include/nolibc/arch.h
@@ -33,6 +33,8 @@
#include "arch-s390.h"
#elif defined(__loongarch__)
#include "arch-loongarch.h"
+#else
+#error Unsupported Architecture
#endif
#endif /* _NOLIBC_ARCH_H */