_llvm_version = '>= 3.3.0'
endif
+_shared_llvm = get_option('shared-llvm')
+
_llvm = get_option('llvm')
if _llvm == 'auto'
dep_llvm = dependency(
modules : llvm_modules,
optional_modules : llvm_optional_modules,
required : with_amd_vk or with_gallium_radeonsi or with_gallium_swr or with_gallium_opencl,
+ static : not _shared_llvm
)
with_llvm = dep_llvm.found()
elif _llvm == 'true'
version : _llvm_version,
modules : llvm_modules,
optional_modules : llvm_optional_modules,
+ static : not _shared_llvm,
)
with_llvm = true
else
choices : ['auto', 'true', 'false'],
description : 'Build with LLVM support.'
)
+option(
+ 'shared-llvm',
+ type : 'boolean',
+ value : true,
+ description : 'Whether to link llvm shared or statically.'
+)
option(
'valgrind',
type : 'combo',