mesa: setting meson opt mesa-clc to 'auto' if LLVM support disabled 68/head
authorMirko Vogt <[email protected]>
Mon, 19 May 2025 21:15:01 +0000 (21:15 +0000)
committerMirko Vogt <[email protected]>
Mon, 19 May 2025 21:34:37 +0000 (21:34 +0000)
commitf2d60f5719cf3b3590e5512160c49d2339cfbbfe
tree80b1715ce1cb33fc07a6c8163fec6f6ea968c43f
parent2ebf064c0583f031dc41e4c1bf4f404bbcd3f3c7
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