浏览代码

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.
Hugo Locurcio 1 年之前
父节点
当前提交
7b0f2a5f53
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      platform/linuxbsd/detect.py

+ 2 - 2
platform/linuxbsd/detect.py

@@ -207,8 +207,8 @@ def configure(env: "Environment"):
         env.Append(CPPDEFINES=["SOWRAP_ENABLED"])
         env.Append(CPPDEFINES=["SOWRAP_ENABLED"])
 
 
     if env["wayland"]:
     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
             env["wayland"] = False
 
 
     if env["touch"]:
     if env["touch"]: