meson: auto-disable draw-use-llvm when llvm=disabled

The option's description is:
> Whether to use LLVM for the Gallium draw module, if LLVM is included.

Let's disable it right away if LLVM is disabled, to avoid some
configurations from failing.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38558>
(cherry picked from commit 37c7d19e46)
This commit is contained in:
Eric Engestrom 2025-11-20 22:38:58 +01:00 committed by Eric Engestrom
parent 0cbf8cc0ca
commit 6872db98fb
2 changed files with 2 additions and 2 deletions

View file

@ -4004,7 +4004,7 @@
"description": "meson: auto-disable `draw-use-llvm` when `llvm=disabled`",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1723,7 +1723,7 @@ if with_clc
# but we don't know what LLVM version we are using yet
llvm_optional_modules += ['all-targets', 'windowsdriver', 'frontendhlsl', 'frontenddriver']
endif
draw_with_llvm = get_option('draw-use-llvm')
draw_with_llvm = with_llvm.allowed() and get_option('draw-use-llvm')
if draw_with_llvm
llvm_modules += 'native'
# lto is needded with LLVM>=15, but we don't know what LLVM verrsion we are using yet