Its build script decides with #[cfg], and a build script is compiled for the host, so cross-building from Linux asks the linker for X11.lib and wayland-client.lib on a Windows target. Empty archives on the search path satisfy it and pull nothing into the exe.