From 69bb927ebfc40b81b30e38a59c1aa4b0593f73e8 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 20 Nov 2025 19:29:39 +0100 Subject: [PATCH] meson: auto-disable `amd-use-llvm` when `llvm=disabled` The option's description is: > Whether to use LLVM for the AMD drivers, if LLVM is included. Let's disable it right away if LLVM is disabled, to avoid configurations like the one in the issue below from failing. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14306 Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5f721858996..535b840934a 100644 --- a/meson.build +++ b/meson.build @@ -42,7 +42,7 @@ if get_option('layout') != 'mirror' endif with_llvm = get_option('llvm') -amd_with_llvm = get_option('amd-use-llvm') +amd_with_llvm = with_llvm.allowed() and get_option('amd-use-llvm') with_mesa_debug = get_option('buildtype') == 'debug'