[godot] Fix attempt for iOS patch

This commit is contained in:
Mario Zechner 2025-11-19 13:43:08 +01:00
parent a394a95a4d
commit 18f792543e
4 changed files with 49 additions and 5 deletions

View File

@ -71,12 +71,23 @@ if [ "$branch" = "4.3-stable" ]; then
fi
# Apply iOS Vulkan fix for C++ module imports in extern "C" blocks
# This fixes compilation errors with newer Xcode versions
pushd godot
if [ -f ../build/ios-vulkan-fix.patch ]; then
git apply ../build/ios-vulkan-fix.patch
# This fixes compilation errors with newer Xcode versions on Godot 4.x
if [[ "$branch" == 4* ]]; then
pushd godot
if [ -f platform/ios/detect.py ]; then
# Check if the fix is already applied
if ! grep -q "Wno-error=module-import-in-extern-c" platform/ios/detect.py; then
# Insert the fix after the -Wno-ambiguous-macro line
sed -i.bak '/Wno-ambiguous-macro/a\
\
# Fix for C++ module imports in extern "C" blocks in Vulkan headers\
env.Append(CCFLAGS=["-Wno-error=module-import-in-extern-c"])
' platform/ios/detect.py && rm platform/ios/detect.py.bak
echo "Applied iOS Vulkan fix to platform/ios/detect.py"
fi
fi
popd
fi
popd
popd

View File

@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1763543634399</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1763543634394</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1763543634400</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>