Set minimum supported macOS to 13.0, and minimum supported iOS to 16.0.

This commit is contained in:
Бранимир Караџић
2023-12-12 18:47:14 -08:00
parent 00ffdf75af
commit 90d7e770de
3 changed files with 10 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ namespace bx
inline void HashMurmur2A::begin(uint32_t _seed) inline void HashMurmur2A::begin(uint32_t _seed)
{ {
BX_UNUSED(m_tail);
m_hash = _seed; m_hash = _seed;
m_size = 0; m_size = 0;
m_count = 0; m_count = 0;
@@ -95,6 +96,7 @@ namespace bx
inline void HashMurmur3::begin(uint32_t _seed) inline void HashMurmur3::begin(uint32_t _seed)
{ {
BX_UNUSED(m_tail);
m_hash = _seed; m_hash = _seed;
m_size = 0; m_size = 0;
m_count = 0; m_count = 0;

View File

@@ -463,6 +463,12 @@
# define BX_CPP_NAME "C++Unknown" # define BX_CPP_NAME "C++Unknown"
#endif // defined(__cplusplus) #endif // defined(__cplusplus)
#if BX_PLATFORM_OSX && BX_PLATFORM_OSX < 130000
#error "Minimum supported macOS version is 13.00.\n"
#elif BX_PLATFORM_IOS && BX_PLATFORM_IOS < 160000
#error "Minimum supported macOS version is 16.00.\n"
#endif // BX_PLATFORM_OSX < 130000
#if BX_CPU_ENDIAN_BIG #if BX_CPU_ENDIAN_BIG
static_assert(false, "\n\n" static_assert(false, "\n\n"
"\t** IMPORTANT! **\n\n" "\t** IMPORTANT! **\n\n"

View File

@@ -961,6 +961,7 @@ function toolchain(_buildDir, _libDir)
"-Wfatal-errors", "-Wfatal-errors",
"-Wunused-value", "-Wunused-value",
"-Wundef", "-Wundef",
"-mmacosx-version-min=13.0",
} }
includedirs { path.join(bxDir, "include/compat/osx") } includedirs { path.join(bxDir, "include/compat/osx") }
@@ -972,6 +973,7 @@ function toolchain(_buildDir, _libDir)
"-Wfatal-errors", "-Wfatal-errors",
"-Wunused-value", "-Wunused-value",
"-Wundef", "-Wundef",
"-mios-version-min=16.0",
} }
includedirs { path.join(bxDir, "include/compat/ios") } includedirs { path.join(bxDir, "include/compat/ios") }