Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

[macOS] Fix build with enabled ANGLE and disabled Vulkan/Metal.

Pāvels Nadtočajevs3bb55a2e07fd
diff --git a/platform/macos/detect.py b/platform/macos/detect.py
index 2b67ccb58d2..8378eaaaffc 100644
--- a/platform/macos/detect.py
+++ b/platform/macos/detect.py
@@ -293,6 +293,7 @@ def configure(env: "SConsEnvironment"):
env.Append(LINKFLAGS=["-lANGLE.macos." + env["arch"]])
env.Append(LINKFLAGS=["-lEGL.macos." + env["arch"]])
env.Append(LINKFLAGS=["-lGLES.macos." + env["arch"]])
+ extra_frameworks.add("Metal")
else:
print_warning(
"The ANGLE rendering driver requires dependencies to be installed.\n"