1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Silence wayland-scanner check in buildsystem

This prevents a wayland-scanner message from appearing every build
when `wayland=yes` is used (the default). The error message when
wayland-scanner is still printed as it's not printed by
wayland-scanner itself.
This commit is contained in:
Hugo Locurcio
2024-02-06 19:49:01 +01:00
parent d3352813ea
commit 7b0f2a5f53

View File

@@ -207,8 +207,8 @@ def configure(env: "Environment"):
env.Append(CPPDEFINES=["SOWRAP_ENABLED"])
if env["wayland"]:
if os.system("wayland-scanner -v") != 0:
print("wayland-scanner not found. Disabling wayland support.")
if os.system("wayland-scanner -v 2>/dev/null") != 0:
print("wayland-scanner not found. Disabling Wayland support.")
env["wayland"] = False
if env["touch"]: