Enable libclc in RHEL builds

As of 24.1, the Intel drivers cannot be built without libclc.
This commit is contained in:
Yaakov Selkowitz 2024-06-03 18:53:54 -04:00 committed by yselkowitz
parent 48e9489a6f
commit 4ba95cb475

View file

@ -27,9 +27,7 @@
%global with_i915 1
%global with_iris 1
%global with_xa 1
%if !0%{?rhel}
%global with_intel_clc 1
%endif
%global intel_platform_vulkan ,intel,intel_hasvk
%endif
%ifarch x86_64
@ -143,14 +141,16 @@ BuildRequires: flatbuffers-devel
BuildRequires: flatbuffers-compiler
BuildRequires: xtensor-devel
%endif
%if 0%{?with_opencl} || 0%{?with_nvk}
%if 0%{?with_opencl} || 0%{?with_nvk} || 0%{?with_intel_clc}
BuildRequires: clang-devel
BuildRequires: bindgen
BuildRequires: rust-packaging
BuildRequires: pkgconfig(libclc)
BuildRequires: pkgconfig(SPIRV-Tools)
BuildRequires: pkgconfig(LLVMSPIRVLib)
%endif
%if 0%{?with_opencl} || 0%{?with_nvk}
BuildRequires: bindgen
BuildRequires: rust-packaging
%endif
%if 0%{?with_nvk}
BuildRequires: cbindgen
BuildRequires: (crate(paste) >= 1.0.14 with crate(paste) < 2)