From db1a28435d22b8dad391be6ee8c1af282bc72fde Mon Sep 17 00:00:00 2001 From: Thomas Devoogdt Date: Sat, 3 Jan 2026 09:40:01 +0100 Subject: [PATCH] package/mesa3d: explicitly enable llvm for host-mesa3d LLVM is already implicitly enabled for host-mesa3d when BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER is selected. This blind option is automatically enabled when LLVM is required by drivers such as intel-iris, panfrost, imagination, or intel-vulkan. The BR2_PACKAGE_MESA3D_LLVM option also independently selects host-llvm, but this change makes the dependency more explicit for host-mesa3d builds. Note that disabling LLVM is not possible for host-mesa3d, as the build will fail with: ../../../br-test-pkg/bootlin-armv5-uclibc/build/host-mesa3d-25.3.2/meson.build:847:3: ERROR: Feature llvm cannot be disabled: CLC requires LLVM Signed-off-by: Thomas Devoogdt Signed-off-by: Romain Naour --- package/mesa3d/mesa3d.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 2468310413..db46d7bc7c 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -297,6 +297,7 @@ HOST_MESA3D_CONF_OPTS = \ -Dgallium-drivers=$(subst $(space),$(comma),$(HOST_MESA3D_GALLIUM_DRIVERS-y)) \ -Dtools=$(subst $(space),$(comma),$(HOST_MESA3D_TOOLS)) \ -Dinstall-mesa-clc=true \ + -Dllvm=enabled \ -Dmesa-clc=enabled \ -Dplatforms= \ -Dprecomp-compiler=enabled \ @@ -306,6 +307,7 @@ HOST_MESA3D_CONF_OPTS = \ HOST_MESA3D_DEPENDENCIES = \ host-libclc \ host-libdrm \ + host-llvm \ host-python-mako \ host-python-pyyaml \ host-spirv-tools