File tree Expand file tree Collapse file tree 4 files changed +49
-5
lines changed
Expand file tree Collapse file tree 4 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,23 @@ if [ "$branch" = "4.3-stable" ]; then
7171fi
7272
7373# Apply iOS Vulkan fix for C++ module imports in extern "C" blocks
74- # This fixes compilation errors with newer Xcode versions
75- pushd godot
76- if [ -f ../build/ios-vulkan-fix.patch ]; then
77- git apply ../build/ios-vulkan-fix.patch
74+ # This fixes compilation errors with newer Xcode versions on Godot 4.x
75+ if [[ " $branch " == 4* ]]; then
76+ pushd godot
77+ if [ -f platform/ios/detect.py ]; then
78+ # Check if the fix is already applied
79+ if ! grep -q " Wno-error=module-import-in-extern-c" platform/ios/detect.py; then
80+ # Insert the fix after the -Wno-ambiguous-macro line
81+ sed -i.bak ' /Wno-ambiguous-macro/a\
82+ \
83+ # Fix for C++ module imports in extern "C" blocks in Vulkan headers\
84+ env.Append(CCFLAGS=["-Wno-error=module-import-in-extern-c"])
85+ ' platform/ios/detect.py && rm platform/ios/detect.py.bak
86+ echo " Applied iOS Vulkan fix to platform/ios/detect.py"
87+ fi
88+ fi
89+ popd
7890fi
79- popd
8091
8192popd
8293
Original file line number Diff line number Diff line change 1414 <natures >
1515 <nature >org.eclipse.jdt.core.javanature</nature >
1616 </natures >
17+ <filteredResources >
18+ <filter >
19+ <id >1763543634399</id >
20+ <name ></name >
21+ <type >30</type >
22+ <matcher >
23+ <id >org.eclipse.core.resources.regexFilterMatcher</id >
24+ <arguments >node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments >
25+ </matcher >
26+ </filter >
27+ </filteredResources >
1728</projectDescription >
Original file line number Diff line number Diff line change 1414 <natures >
1515 <nature >org.eclipse.jdt.core.javanature</nature >
1616 </natures >
17+ <filteredResources >
18+ <filter >
19+ <id >1763543634394</id >
20+ <name ></name >
21+ <type >30</type >
22+ <matcher >
23+ <id >org.eclipse.core.resources.regexFilterMatcher</id >
24+ <arguments >node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments >
25+ </matcher >
26+ </filter >
27+ </filteredResources >
1728</projectDescription >
Original file line number Diff line number Diff line change 1414 <natures >
1515 <nature >org.eclipse.jdt.core.javanature</nature >
1616 </natures >
17+ <filteredResources >
18+ <filter >
19+ <id >1763543634400</id >
20+ <name ></name >
21+ <type >30</type >
22+ <matcher >
23+ <id >org.eclipse.core.resources.regexFilterMatcher</id >
24+ <arguments >node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments >
25+ </matcher >
26+ </filter >
27+ </filteredResources >
1728</projectDescription >
You can’t perform that action at this time.
0 commit comments