amd: require LLVM when amd-use-llvm is enabled
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37695>
This commit is contained in:
Mauro Rossi 2025-10-03 21:15:34 +02:00
parent 7ef5653b11
commit dd2476a257

View file

@ -1757,7 +1757,7 @@ endif
llvm_has_mcjit = host_machine.cpu_family() in ['aarch64', 'arm', 'ppc', 'ppc64', 's390x', 'x86', 'x86_64'] 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 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' _llvm_version = '>= 18.0.0'
elif with_clc or llvm_with_orcjit elif with_clc or llvm_with_orcjit
_llvm_version = '>= 15.0.0' _llvm_version = '>= 15.0.0'