summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-02-06 19:49:01 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-02-06 19:49:34 +0100
commit7b0f2a5f539cafefd89921030ea48dc42c22dd88 (patch)
treefbf43b29a95ecdccd2bb76fa04a54fbcdcf10f18 /platform/linuxbsd/detect.py
parentd3352813ea44447bfbf135efdec23acc4d1d3f89 (diff)
downloadredot-engine-7b0f2a5f539cafefd89921030ea48dc42c22dd88.tar.gz
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.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 7946ef6228..b71dbbb91c 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -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"]: