mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-03 13:13:02 +00:00
meson: Leave dep_llvm empty if !with_llvm
The gallium auxiliary build would link against llvm, for the gallivm code that it didn't build. This broke the build on my armhf cross, where libLLVM-3.9.so is not multiarch and thus points to x86-64 libs. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Tested-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
015cc6bb7c
commit
d975e6940e
@ -661,10 +661,11 @@ llvm_modules = ['bitwriter', 'engine', 'mcdisassembler', 'mcjit']
|
||||
if with_amd_vk
|
||||
llvm_modules += ['amdgpu', 'bitreader', 'ipo']
|
||||
endif
|
||||
dep_llvm = dependency(
|
||||
'llvm', version : '>= 3.9.0', required : with_amd_vk, modules : llvm_modules,
|
||||
)
|
||||
dep_llvm = []
|
||||
if with_llvm
|
||||
dep_llvm = dependency(
|
||||
'llvm', version : '>= 3.9.0', required : with_amd_vk, modules : llvm_modules,
|
||||
)
|
||||
if dep_llvm.found()
|
||||
_llvm_version = dep_llvm.version().split('.')
|
||||
# Development versions of LLVM have an 'svn' suffix, we don't want that for
|
||||
|
Loading…
Reference in New Issue
Block a user