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

Dylan Baker dylan at pnwbakers.com
Thu Dec 6 18:01:28 UTC 2018


Quoting Nicolai Hähnle (2018-12-06 05:49:02)
> 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
> 

Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181206/12620752/attachment.sig>


More information about the mesa-dev mailing list