Makes things easier to handle when aiming for a static build
Cc: mesa-stable
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18117>
dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
- if not dep_clang.found()
+ if not dep_clang.found() or not _shared_llvm
clang_modules = [
'clangBasic', 'clangAST', 'clangCodeGen', 'clangLex',
'clangDriver', 'clangFrontend', 'clangFrontendTool',
else
dep_clang_usable = true
endif
-if not (dep_clang.found() and dep_clang_usable)
+if not _shared_llvm or not (dep_clang.found() and dep_clang_usable)
dep_clang = [
cpp.find_library('clangCodeGen', dirs : llvm_libdir),
cpp.find_library('clangFrontendTool', dirs : llvm_libdir),