From c9de8a8e50e6b7c728ab7263de392c0f4481db70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 3 May 2023 11:44:09 +0200 Subject: [PATCH] Do not enable intel-clc for ELN/RHEL libclc isn't available there. Fixes build failure on ELN. --- mesa.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index bc2de82..4f308d2 100644 --- a/mesa.spec +++ b/mesa.spec @@ -14,6 +14,9 @@ %ifarch %{ix86} x86_64 %global with_crocus 1 %global with_i915 1 +%if !0%{?rhel} +%global with_intel_clc 1 +%endif %global with_iris 1 %global with_xa 1 %global platform_vulkan ,intel,intel_hasvk @@ -131,7 +134,7 @@ BuildRequires: pkgconfig(valgrind) %endif BuildRequires: python3-devel BuildRequires: python3-mako -%ifarch %{ix86} x86_64 +%if 0%{?with_intel_clc} BuildRequires: python3-ply %endif BuildRequires: vulkan-headers @@ -374,7 +377,9 @@ export RUSTFLAGS="%build_rustflags" -Dglx=dri \ -Degl=enabled \ -Dglvnd=true \ +%if 0%{?with_intel_clc} -Dintel-clc=enabled \ +%endif -Dmicrosoft-clc=disabled \ -Dllvm=enabled \ -Dshared-llvm=enabled \