From 4ca4a05627e40e8212a8ea957f8ef2f697e4e322 Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Thu, 2 Feb 2023 12:16:01 +0900 Subject: meson: Fix Asahi build on macOS !19950 introduced a dependency between NIR and Vulkan headers, and the Vulkan headers try to include X11 headers we cannot find on macOS. Disable this (we have no plans for Vulkan on the macOS testing platform anyway). Signed-off-by: Asahi Lina Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 3f60316b063..c0e2ab3cfdf 100644 --- a/meson.build +++ b/meson.build @@ -364,7 +364,7 @@ if with_platform_wayland #add this once aco and other places can build with it #cpp_args += '-DVK_USE_PLATFORM_WAYLAND_KHR' endif -if with_platform_x11 +if with_platform_x11 and host_machine.system() != 'darwin' c_args += ['-DVK_USE_PLATFORM_XCB_KHR', '-DVK_USE_PLATFORM_XLIB_KHR'] #add this once aco and other places can build with it #cpp_args += ['-DVK_USE_PLATFORM_XCB_KHR', '-DVK_USE_PLATFORM_XLIB_KHR'] -- cgit v1.2.1