[Mesa-dev] [PATCH] meson: link LLVM 'native' component when LLVM is available

Nicolai Hähnle nhaehnle at gmail.com
Thu Dec 6 13:49:02 UTC 2018


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Linking against LLVM built with BUILD_SHARED_LIBS fails otherwise,
as the component is required for the draw module.
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 1aeef95f722..0177716c476 100644
--- a/meson.build
+++ b/meson.build
@@ -1155,21 +1155,21 @@ dep_libdrm = dependency(
 if dep_libdrm.found()
   pre_args += '-DHAVE_LIBDRM'
   if with_dri_platform == 'drm' and with_dri
     with_gallium_drisw_kms = true
   endif
 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
 endif
 if with_gallium_opencl
   llvm_modules += [
     'all-targets', 'linker', 'coverage', 'instrumentation', 'ipo', 'irreader',
     'lto', 'option', 'objcarcopts', 'profiledata',
   ]
   llvm_optional_modules += ['coroutines']
-- 
2.19.1



More information about the mesa-dev mailing list