From 610b8e4df1d4b9003e19ba96450f5dbda5e23840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 23 Oct 2023 18:30:17 -0700 Subject: [PATCH] Explicitly disable building for big endian. --- include/bx/platform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/bx/platform.h b/include/bx/platform.h index 6fdb279..b4197f8 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -461,6 +461,13 @@ # define BX_CPP_NAME "C++Unknown" #endif // defined(__cplusplus) +#if BX_CPU_ENDIAN_BIG +static_assert(false, "\n\n" + "\t** IMPORTANT! **\n\n" + "\tThe code was not tested for big endian, and big endian CPU is considered unsupported.\n" + "\t\n"); +#endif // BX_CPU_ENDIAN_BIG + #if BX_PLATFORM_BSD \ || BX_PLATFORM_HAIKU \ || BX_PLATFORM_HURD