Browse Source

Merge pull request #84613 from Calinou/glslang-build-only-vulkan

Only build glslang if Vulkan or Direct3D 12 rendering is enabled
Rémi Verschelde 1 year ago
parent
commit
5cdd0c6cd6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/glslang/config.py

+ 3 - 1
modules/glslang/config.py

@@ -1,5 +1,7 @@
 def can_build(env, platform):
-    return True
+    # glslang is only needed when Vulkan or Direct3D 12-based renderers are available,
+    # as OpenGL doesn't use glslang.
+    return env["vulkan"] or env["d3d12"]
 
 
 def configure(env):