From f2d60f5719cf3b3590e5512160c49d2339cfbbfe Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Mon, 19 May 2025 21:15:01 +0000 Subject: [PATCH] mesa: setting meson opt mesa-clc to 'auto' if LLVM support disabled mesa-clc set to 'system' requires the system tool 'mesa-clc' which gets built as part of the mesa/host build. The mesa/host build however depends on LLVM and others - hence we're trying to avoid pulling this in where possible if target configuration allows. meson option 'mesa-clc' allows for 3 options: enabled, system, auto. While 'auto' sounds like it will only automagically go for either 'enabled' or 'system', it will also disable CLC support entirely, if only drivers are enabled which don't need it (resulting in `with_clc=false`) - which is exactly what we want. This relies on only drivers being selectable, which don't automatically enable CLC - if LLVM support is disabled. --- libs/mesa/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/mesa/Makefile b/libs/mesa/Makefile index ef3477b..f4f2129 100644 --- a/libs/mesa/Makefile +++ b/libs/mesa/Makefile @@ -582,7 +582,7 @@ MESON_ARGS += \ -Dgallium-opencl=$(if $(CONFIG_MESA_USE_LLVM),standalone,disabled) \ -Ddraw-use-llvm=$(if $(CONFIG_MESA_USE_LLVM),true,false) \ -Dintel-clc=system \ - -Dmesa-clc=system \ + -Dmesa-clc=$(if $(CONFIG_MESA_USE_LLVM),system,auto) \ -Dprecomp-compiler=system ifeq ($(BUILD_VARIANT),amd) -- 2.30.2