36 lines
931 B
Diff
36 lines
931 B
Diff
Restores musl support which was removed upstream:
|
|
https://github.com/bkaradzic/bx/commit/d7ecac17060ab8cf765b21e55a762aa4855dfdb1
|
|
|
|
diff --git a/3rdparty/bx/include/bx/platform.h b/3rdparty/bx/include/bx/platform.h
|
|
index f14f9b68..ea82d7f3 100644
|
|
--- a/3rdparty/bx/include/bx/platform.h
|
|
+++ b/3rdparty/bx/include/bx/platform.h
|
|
@@ -37,6 +37,10 @@
|
|
#define BX_CRT_MSVC 0
|
|
#define BX_CRT_NEWLIB 0
|
|
|
|
+#ifndef BX_CRT_MUSL
|
|
+# define BX_CRT_MUSL 1
|
|
+#endif // BX_CRT_MUSL
|
|
+
|
|
#ifndef BX_CRT_NONE
|
|
# define BX_CRT_NONE 0
|
|
#endif // BX_CRT_NONE
|
|
@@ -255,6 +259,7 @@
|
|
&& !BX_CRT_LIBCXX \
|
|
&& !BX_CRT_MINGW \
|
|
&& !BX_CRT_MSVC \
|
|
+ && !BX_CRT_MUSL \
|
|
&& !BX_CRT_NEWLIB
|
|
# undef BX_CRT_NONE
|
|
# define BX_CRT_NONE 1
|
|
@@ -432,6 +437,8 @@
|
|
# define BX_CRT_NAME "Clang C Library"
|
|
#elif BX_CRT_NEWLIB
|
|
# define BX_CRT_NAME "Newlib"
|
|
+#elif BX_CRT_MUSL
|
|
+# define BX_CRT_NAME "musl libc"
|
|
#elif BX_CRT_NONE
|
|
# define BX_CRT_NAME "None"
|
|
#else
|