From 9b8c1bd224f1deb60b6bec865d57e4348f71cc50 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 9 Nov 2021 01:53:49 +0100 Subject: [PATCH] libOpenCL required only when building with polly gpgpu codegen --- llvm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 9da6d4b..088ea70 100644 --- a/llvm.spec +++ b/llvm.spec @@ -165,7 +165,7 @@ BuildRequires: xz-devel # private copy in polly/lib/External/isl #BuildRequires: isl-devel >= 0.22.1 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON) -BuildRequires: ocl-icd-libOpenCL-devel +%{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel} %endif %if %{with ocaml} BuildConflicts: llvm-devel -- 2.44.0