Browse Source

Merge pull request #87765 from Riteo/wayland-skip-no-scanner

Wayland: Disable backend at build-time if wayland-scanner is missing
Rémi Verschelde 1 year ago
parent
commit
7de88873a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      platform/linuxbsd/detect.py

+ 2 - 2
platform/linuxbsd/detect.py

@@ -208,8 +208,8 @@ def configure(env: "Environment"):
 
 
     if env["wayland"]:
     if env["wayland"]:
         if os.system("wayland-scanner -v") != 0:
         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"]:
     if env["touch"]:
         env.Append(CPPDEFINES=["TOUCH_ENABLED"])
         env.Append(CPPDEFINES=["TOUCH_ENABLED"])