From c3d6cc57be605fad96ae092685578ef215ca8dbc Mon Sep 17 00:00:00 2001 From: Riteo Date: Wed, 31 Jan 2024 02:08:33 +0100 Subject: [PATCH] Wayland: disable backend at build-time if wayland-scanner is missing This allows previous X11-only setups to still build Godot with default settings. Note that compilation will still abort if wayland-scanner is present but not the various Wayland libraries. --- platform/linuxbsd/detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index e6a47f556d0..7946ef6228d 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -208,8 +208,8 @@ def configure(env: "Environment"): if env["wayland"]: if os.system("wayland-scanner -v") != 0: - print("wayland-scanner not found. Aborting.") - sys.exit(255) + print("wayland-scanner not found. Disabling wayland support.") + env["wayland"] = False if env["touch"]: env.Append(CPPDEFINES=["TOUCH_ENABLED"])