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