From b78afc2c739c2f35a614115d0b99e28b08ebede8 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 28 Oct 2022 12:28:09 -0400 Subject: [PATCH] rusticl: meson devenv support This gets 'meson devenv -C build clinfo' working on iris for me. Reviewed-by: Karol Herbst Part-of: --- src/gallium/targets/rusticl/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/targets/rusticl/meson.build b/src/gallium/targets/rusticl/meson.build index babc63ba3ac..a968dee52db 100644 --- a/src/gallium/targets/rusticl/meson.build +++ b/src/gallium/targets/rusticl/meson.build @@ -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