From c96c36fb6e965502362da364756d3f76bbae9fc8 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 23 Dec 2021 20:30:46 -0700 Subject: [PATCH] docs: explain how to build without Wayland support refs: https://github.com/wez/wezterm/discussions/1455 --- docs/install/source.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/install/source.markdown b/docs/install/source.markdown index b41f826d1..0f026ef0d 100644 --- a/docs/install/source.markdown +++ b/docs/install/source.markdown @@ -41,3 +41,15 @@ cargo run --release --bin wezterm -- start **If you get an error about zlib then you most likely didn't initialize the submodules; take a closer look at the instructions!** + +### Building without Wayland support on Unix systems + +By default, support for both X11 and Wayland is included on Unix systems. +If your distribution has X11 but not Wayland, then you can build WezTerm without +Wayland support by changing the `build` invocation: + +```bash +cargo build --release --no-default-features +``` + +Building without X11 is not supported.