commit 9b8c1bd224f1deb60b6bec865d57e4348f71cc50
Author: Jan Palus <[email protected]>
Date:   Tue Nov 9 01:53:49 2021 +0100

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/9b8c1bd224f1deb60b6bec865d57e4348f71cc50

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to