[arch-commits] Commit in arrayfire/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue May 8 02:22:57 UTC 2018


    Date: Tuesday, May 8, 2018 @ 02:22:56
  Author: svenstaro
Revision: 319498

upgpkg: arrayfire 3.6.0-1

Modified:
  arrayfire/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-08 02:12:44 UTC (rev 319497)
+++ PKGBUILD	2018-05-08 02:22:56 UTC (rev 319498)
@@ -6,7 +6,7 @@
 arch=('x86_64')
 pkgrel=1
 license=('BSD')
-makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'ocl-icd' 'cuda' 'nvidia-utils')
+makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'ocl-icd' 'cuda' 'nvidia-utils' 'clang' 'openmp')
 depends=('cblas' 'fftw' 'boost-libs' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew' 'glbinding')
 optdepends=('cuda: Required for using CUDA backend'
             'nvidia-utils: Required for using CUDA backend'
@@ -17,16 +17,16 @@
 
 prepare() {
   cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  rm -rf build && mkdir build
 }
 
 build() {
   cd "${srcdir}/arrayfire-full-${pkgver}"
 
-  rm -rf build
-  mkdir build && cd build
-
-  export CC=gcc-5
-  export CXX=g++-5
+  cd build
+  export CC=clang
+  export CXX=clang++
   cmake .. \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DAF_USE_SYSTEM_FORGE=ON \
@@ -38,7 +38,8 @@
       -DAF_BUILD_EXAMPLES=ON \
       -DAF_BUILD_DOCS=ON \
       -DCUDA_architecture_build_targets="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0" \
-      -DCMAKE_BUILD_TYPE=Release
+      -DCMAKE_BUILD_TYPE=Release \
+      -DCUDA_HOST_COMPILER=/usr/bin/gcc-5
 
   make
 }



More information about the arch-commits mailing list