diff --git a/meson.build b/meson.build index 2092c726762..f2bb035910b 100644 --- a/meson.build +++ b/meson.build @@ -823,7 +823,6 @@ if _opencl != 'disabled' error('The Clover OpenCL state tracker requires rtti') endif - with_clc = true with_gallium_opencl = true with_opencl_icd = _opencl == 'icd' else @@ -848,7 +847,7 @@ if with_gallium_rusticl endif dep_clc = null_dep -if with_clc +if with_gallium_opencl or with_clc dep_clc = dependency('libclc') endif diff --git a/src/compiler/meson.build b/src/compiler/meson.build index 1dae56d1b2b..8d73544c6d8 100644 --- a/src/compiler/meson.build +++ b/src/compiler/meson.build @@ -79,7 +79,7 @@ subdir('nir') subdir('spirv') -if with_opencl_spirv +if with_clc subdir('clc') endif if with_gallium