]> git.pld-linux.org Git - packages/llvm.git/commitdiff
libOpenCL required only when building with polly gpgpu codegen auto/th/llvm-13.0.0-2
authorJan Palus <atler@pld-linux.org>
Tue, 9 Nov 2021 00:53:49 +0000 (01:53 +0100)
committerJan Palus <atler@pld-linux.org>
Tue, 9 Nov 2021 00:53:49 +0000 (01:53 +0100)
llvm.spec

index 9da6d4b14df6739a8e01cecf165034c7190c7f65..088ea70b47d7582550ee0d1b39908561b79657c4 100644 (file)
--- 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
This page took 0.171206 seconds and 4 git commands to generate.