rusticl: meson devenv support

This gets 'meson devenv -C build clinfo' working on iris for me.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19451>
This commit is contained in:
Adam Jackson 2022-10-28 12:28:09 -04:00 committed by Marge Bot
parent a71d068fd0
commit b78afc2c73

View file

@ -61,3 +61,11 @@ configure_file(
install : true,
install_dir : join_paths(get_option('sysconfdir'), 'OpenCL', 'vendors'),
)
if meson.version().version_compare('>= 0.58')
# .so is hardcoded in the icd as well
devenv.prepend(
'OCL_ICD_VENDORS',
meson.current_build_dir() / 'libRusticlOpenCL.so.@0@'.format(opencl_version)
)
endif