meson: link LLVM 'native' component when LLVM is available
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Dec 2018 12:28:03 +0000 (13:28 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 7 Dec 2018 15:26:14 +0000 (16:26 +0100)
Linking against LLVM built with BUILD_SHARED_LIBS fails otherwise,
as the component is required for the draw module.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 9ea31ab3ae90d57ef763ec1f6c6cd44b4e292122..4f6176b8d9665c8cdebefec4b06fbbd9038f9e3e 100644 (file)
@@ -1162,7 +1162,7 @@ endif
 llvm_modules = ['bitwriter', 'engine', 'mcdisassembler', 'mcjit']
 llvm_optional_modules = []
 if with_amd_vk or with_gallium_radeonsi or with_gallium_r600
-  llvm_modules += ['amdgpu', 'bitreader', 'ipo']
+  llvm_modules += ['amdgpu', 'native', 'bitreader', 'ipo']
   if with_gallium_r600
     llvm_modules += 'asmparser'
   endif