meson: fix link failure with llvm-18
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10739 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10775 cc: mesa-stable Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28267>
This commit is contained in:
@@ -1726,7 +1726,7 @@ if with_clc
|
||||
# all-targets is needed to support static linking LLVM build with multiple targets.
|
||||
# windowsdriver is needded with LLVM>=15 and frontendhlsl is needed with LLVM>=16,
|
||||
# but we don't know what LLVM version we are using yet
|
||||
llvm_optional_modules += ['all-targets', 'windowsdriver', 'frontendhlsl']
|
||||
llvm_optional_modules += ['all-targets', 'windowsdriver', 'frontendhlsl', 'frontenddriver']
|
||||
endif
|
||||
draw_with_llvm = get_option('draw-use-llvm')
|
||||
if draw_with_llvm
|
||||
@@ -1866,6 +1866,9 @@ if with_clc
|
||||
if dep_llvm.version().version_compare('>= 16.0')
|
||||
clang_modules += 'clangASTMatchers'
|
||||
endif
|
||||
if dep_llvm.version().version_compare('>= 18.0')
|
||||
clang_modules += 'clangAPINotes'
|
||||
endif
|
||||
|
||||
dep_clang = []
|
||||
foreach m : clang_modules
|
||||
|
Reference in New Issue
Block a user