]> git.pld-linux.org Git - packages/llvm.git/blobdiff - llvm.spec
libOpenCL required only when building with polly gpgpu codegen
[packages/llvm.git] / 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.071935 seconds and 4 git commands to generate.