Commit 48946c5a authored by Thomas Weißschuh's avatar Thomas Weißschuh

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: default avatarThomas Weißschuh <linux@weissschuh.net>
Acked-by: default avatarWilly Tarreau <w@1wt.eu>
parent 91f16451
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "arch-s390.h" #include "arch-s390.h"
#elif defined(__loongarch__) #elif defined(__loongarch__)
#include "arch-loongarch.h" #include "arch-loongarch.h"
#else
#error Unsupported Architecture
#endif #endif
#endif /* _NOLIBC_ARCH_H */ #endif /* _NOLIBC_ARCH_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment