meson: static link spirv-tools for darwin
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37495>
This commit is contained in:
Aitor Camacho 2025-10-02 11:30:59 +02:00 committed by Marge Bot
parent 7267791292
commit f21d0f2cbe

View file

@ -1854,7 +1854,8 @@ with_spirv_tools = get_option('spirv-tools') \
dep_spirv_tools = dependency( dep_spirv_tools = dependency(
'SPIRV-Tools', 'SPIRV-Tools',
required : with_spirv_tools, required : with_spirv_tools,
version : '>= 2024.1' version : '>= 2024.1',
static : host_machine.system() == 'darwin',
) )
if dep_spirv_tools.found() if dep_spirv_tools.found()
pre_args += '-DHAVE_SPIRV_TOOLS' pre_args += '-DHAVE_SPIRV_TOOLS'