--- a/third_party/swiftshader/src/WSI/BUILD.gn +++ b/third_party/swiftshader/src/WSI/BUILD.gn @@ -84,7 +84,7 @@ swiftshader_source_set("WSI") { "../Vulkan:swiftshader_libvulkan_headers", ] - if (is_linux && !use_system_libwayland) { + if (is_linux && !use_system_libwayland && ozone_platform_wayland) { # Use third-party targets deps += [ "$wayland_gn_dir:wayland_client" ] }