From ae17a19ca2198ecd028c09568037dcd59fb93ae7 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: Fri, 7 Jul 2023 17:46:54 -0700 Subject: [PATCH] Explicitly disable building for BSD, Haiku, Hurd. --- include/bx/platform.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/bx/platform.h b/include/bx/platform.h index 83d9c3b..6fdb279 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -461,4 +461,18 @@ # define BX_CPP_NAME "C++Unknown" #endif // defined(__cplusplus) +#if BX_PLATFORM_BSD \ + || BX_PLATFORM_HAIKU \ + || BX_PLATFORM_HURD +static_assert(false, "\n\n" + "\t** IMPORTANT! **\n\n" + "\tYou're compiling for unsupported platform!\n" + "\tIf you wish to support this platform, make your own fork, and modify code for _yourself_.\n" + "\t\n" + "\tDo not submit PR to main repo, it won't be considered, and it would code rot anyway. I have no ability\n" + "\tto test on these platforms, and over years there wasn't any serious contributor who wanted to take\n" + "\tburden of maintaining code for these platforms.\n" + "\t\n"); +#endif // BX_PLATFORM_* + #endif // BX_PLATFORM_H_HEADER_GUARD