mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-16 20:11:47 +08:00
Adds compiler flag -Wno-error=module-import-in-extern-c to suppress compilation errors when building for iOS with newer Xcode versions. The Vulkan headers include stdint.h inside extern "C" blocks, which conflicts with C++ modules. The fix is applied via a patch file during setup.sh execution.
15 lines
558 B
Diff
15 lines
558 B
Diff
diff --git a/platform/ios/detect.py b/platform/ios/detect.py
|
|
index 53b367a0a7..aea9424abe 100644
|
|
--- a/platform/ios/detect.py
|
|
+++ b/platform/ios/detect.py
|
|
@@ -144,6 +144,9 @@ def configure(env: "SConsEnvironment"):
|
|
# Temp fix for ABS/MAX/MIN macros in iOS SDK blocking compilation
|
|
env.Append(CCFLAGS=["-Wno-ambiguous-macro"])
|
|
|
|
+ # Fix for C++ module imports in extern "C" blocks in Vulkan headers
|
|
+ env.Append(CCFLAGS=["-Wno-error=module-import-in-extern-c"])
|
|
+
|
|
env.Prepend(
|
|
CPPPATH=[
|
|
"$IOS_SDK_PATH/usr/include",
|