[arch-commits] Commit in ispc/repos (3 files)
Bruno Pagani
archange at archlinux.org
Thu Oct 29 19:28:21 UTC 2020
Date: Thursday, October 29, 2020 @ 19:28:20
Author: archange
Revision: 736575
archrelease: copy trunk to community-staging-x86_64
Added:
ispc/repos/community-staging-x86_64/
ispc/repos/community-staging-x86_64/PKGBUILD
(from rev 736574, ispc/trunk/PKGBUILD)
ispc/repos/community-staging-x86_64/ispc-libclang-cpp.patch
(from rev 736574, ispc/trunk/ispc-libclang-cpp.patch)
-------------------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
ispc-libclang-cpp.patch | 11 +++++++++++
2 files changed, 57 insertions(+)
Copied: ispc/repos/community-staging-x86_64/PKGBUILD (from rev 736574, ispc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-10-29 19:28:20 UTC (rev 736575)
@@ -0,0 +1,46 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=ispc
+pkgver=1.14.1
+pkgrel=1
+pkgdesc="Compiler for high-performance SIMD programming on the CPU"
+arch=(x86_64)
+url="https://ispc.github.io/"
+license=(BSD)
+depends=(ncurses zlib llvm-libs clang)
+makedepends=(llvm python lib32-glibc cmake) # level-zero-headers level-zero-loader openmp spirv-llvm-translator vc-intrinsics)
+source=(https://github.com/ispc/ispc/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ ispc-libclang-cpp.patch
+ ispc-llvm11.patch::https://github.com/ispc/ispc/commit/3753974cc19a5c065abc693d5166072837d868f1.patch)
+sha256sums=('3a7ee9ab90b9e9932b7b4effc9bb3ef45ca271d60d9ec6bc8c335242b5ec097b'
+ 'f6a162b8b60e0a0d17526c4e70bf9bc681c0e16cfee2b8cde1d7f9a5a99b8e78'
+ 'a4c409ab92da556ffc475453417ba49a7009cf02c39479d88a186549c67b99fe')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i ../ispc-libclang-cpp.patch # Build with unified libclang-cpp.so
+ # Remove tests that requires DUMPS (https://github.com/ispc/ispc/issues/1752)
+ sed -i '/debug-phase/d' tests/lit-tests/arg_parsing_errors.ispc
+ # https://github.com/ispc/ispc/pull/1863
+ patch -p1 -i ../ispc-llvm11.patch
+}
+
+build() {
+ cmake -B build -S ${pkgname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DISPC_INCLUDE_EXAMPLES=OFF \
+ -DISPC_NO_DUMPS=ON #\
+# -DGENX_ENABLED=ON \
+# -DGENX_DEPS_DIR=/usr
+ make -C build
+}
+
+check() {
+ make -C build check-all
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 ${pkgname}-${pkgver}/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
Copied: ispc/repos/community-staging-x86_64/ispc-libclang-cpp.patch (from rev 736574, ispc/trunk/ispc-libclang-cpp.patch)
===================================================================
--- community-staging-x86_64/ispc-libclang-cpp.patch (rev 0)
+++ community-staging-x86_64/ispc-libclang-cpp.patch 2020-10-29 19:28:20 UTC (rev 736575)
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -209,7 +209,7 @@ if (WASM_ENABLED)
+ endif()
+ endif()
+
+-set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex)
++set(CLANG_LIBRARY_LIST clang-cpp)
+ set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker option)
+
+ if (${LLVM_VERSION_NUMBER} VERSION_GREATER_EQUAL "10.0.0")
More information about the arch-commits
mailing list