mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
meson: update llvm dependency logic for meson 0.54.0
In meson 0.54.0 I fixed the llvm cmake dependency to return "not found"
if shared linking is requested. This means that for 0.54.0 and later we
don't need to do anything, and for earlier versions we only need to
change the logic to force the config-tool method if shared linking is
required.
Fixes: 821cf6942a
("meson: Use cmake to find LLVM when building for window")
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4556>
This commit is contained in:
parent
8e3696137f
commit
fdd0ce12ac
1 changed files with 8 additions and 6 deletions
14
meson.build
14
meson.build
|
|
@ -1413,12 +1413,14 @@ else
|
|||
endif
|
||||
_llvm = get_option('llvm')
|
||||
|
||||
# The cmake method will never find libllvm.so|dylib; this is fine for windows
|
||||
# because llvm doesn't support libllvm.dll
|
||||
_llvm_method = 'config-tool'
|
||||
if (meson.version().version_compare('>= 0.51.0') and
|
||||
host_machine.system() == 'windows')
|
||||
_llvm_method = 'cmake'
|
||||
# the cmake method can only link statically, so don't attempt to use it if we
|
||||
# want to link dynamically. Before 0.54.0 meson will try cmake even when shared
|
||||
# linking is requested, so we need to force the config-tool method to be used
|
||||
# in that case, but in 0.54.0 meson won't try the cmake method if shared
|
||||
# linking is requested.
|
||||
_llvm_method = 'auto'
|
||||
if meson.version().version_compare('< 0.54.0') and _shared_llvm
|
||||
_llvm_method = 'config-tool'
|
||||
endif
|
||||
|
||||
dep_llvm = null_dep
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue