From ab77cb7537c2abf504d8518c72f581fc67ef91c7 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 23 Feb 2026 05:15:17 +0000 Subject: [PATCH] stupid macos --- .ci/ios/build.sh | 1 + externals/cmake-modules/DetectPlatform.cmake | 2 +- src/common/host_memory.cpp | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/ios/build.sh b/.ci/ios/build.sh index 808fe05976..ca37ce9da2 100755 --- a/.ci/ios/build.sh +++ b/.ci/ios/build.sh @@ -13,6 +13,7 @@ fi cmake -G Xcode -B build \ -DCMAKE_TOOLCHAIN_FILE="$WORK_DIR/.ci/ios/ios-toolchain.cmake" \ -DPLATFORM=OS64 \ + -DDEPLOYMENT_TARGET=16.0 \ -DCOCOA_LIBRARY="$IOS_SDK/System/Library/Frameworks/Cocoa.framework" \ -DENABLE_LIBUSB=OFF \ -DENABLE_UPDATE_CHECKER=OFF \ diff --git a/externals/cmake-modules/DetectPlatform.cmake b/externals/cmake-modules/DetectPlatform.cmake index bac5180770..eec94d839c 100644 --- a/externals/cmake-modules/DetectPlatform.cmake +++ b/externals/cmake-modules/DetectPlatform.cmake @@ -53,7 +53,7 @@ endif() # This fixes some quirks with xcrun or weird iOS toolchain cmake files if (IOS) - unser(CXX_CLANG) + unset(CXX_CLANG) set(CXX_APPLE ON) endif() diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index a75152eec0..d31ec5f224 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -27,11 +27,15 @@ #include #elif defined(__APPLE__) #include -#include #include #include #endif +// Not available on iOS for some fucking stupid reason... +#if defined(__APPLE__) && TARGET_OS_MAC +#include +#endif + // FreeBSD #ifndef MAP_NORESERVE #define MAP_NORESERVE 0