From dd2476a2574c13f40c72b916bd72c9570fe2bd45 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Fri, 3 Oct 2025 21:15:34 +0200 Subject: [PATCH] amd: require LLVM when amd-use-llvm is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 2aaa6ebb "build/amd: add amd-use-llvm build option" allows to build radeonsi and radv without LLVM dependency so LLVM constraint is applicable when amd-use-llvm=true Fixes: 82047fa8 ("amd: drop support for LLVM 15, 16, 17") Reviewed-by: Marek Olšák Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 26ddfa9dae8..e32ebd3f2f2 100644 --- a/meson.build +++ b/meson.build @@ -1757,7 +1757,7 @@ endif llvm_has_mcjit = host_machine.cpu_family() in ['aarch64', 'arm', 'ppc', 'ppc64', 's390x', 'x86', 'x86_64'] llvm_with_orcjit = get_option('llvm-orcjit') or not llvm_has_mcjit -if with_amd_vk or with_gallium_radeonsi +if (with_amd_vk or with_gallium_radeonsi) and amd_with_llvm _llvm_version = '>= 18.0.0' elif with_clc or llvm_with_orcjit _llvm_version = '>= 15.0.0'