Date: Wednesday, February 17, 2021 @ 18:49:14 Author: foutrelis Revision: 862617
archrelease: copy trunk to community-staging-x86_64 Added: ispc/repos/community-staging-x86_64/ ispc/repos/community-staging-x86_64/PKGBUILD (from rev 862616, ispc/trunk/PKGBUILD) ispc/repos/community-staging-x86_64/ispc-libclang-cpp.patch (from rev 862616, ispc/trunk/ispc-libclang-cpp.patch) ispc/repos/community-staging-x86_64/llvm-11.1.0.patch (from rev 862616, ispc/trunk/llvm-11.1.0.patch) -------------------------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ ispc-libclang-cpp.patch | 11 +++++++++++ llvm-11.1.0.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) Copied: ispc/repos/community-staging-x86_64/PKGBUILD (from rev 862616, ispc/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-17 18:49:14 UTC (rev 862617) @@ -0,0 +1,45 @@ +# Maintainer: Lukas Jirkovsky <l.jirkov...@gmail.com> +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +pkgname=ispc +pkgver=1.15.0 +pkgrel=2 +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 + llvm-11.1.0.patch + ispc-libclang-cpp.patch) +sha256sums=('2658ff00dc045ac9fcefbf6bd26dffaf723b059a942a27df91bbb61bc503a285' + 'fd2bc96a65656350629918be8c57682d1936ddbe37d410d8c8667538dc992cac' + 'f6a162b8b60e0a0d17526c4e70bf9bc681c0e16cfee2b8cde1d7f9a5a99b8e78') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i ../llvm-11.1.0.patch # Fix build with LLVM 11.1.0 + 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 +} + +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 862616, ispc/trunk/ispc-libclang-cpp.patch) =================================================================== --- community-staging-x86_64/ispc-libclang-cpp.patch (rev 0) +++ community-staging-x86_64/ispc-libclang-cpp.patch 2021-02-17 18:49:14 UTC (rev 862617) @@ -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") Copied: ispc/repos/community-staging-x86_64/llvm-11.1.0.patch (from rev 862616, ispc/trunk/llvm-11.1.0.patch) =================================================================== --- community-staging-x86_64/llvm-11.1.0.patch (rev 0) +++ community-staging-x86_64/llvm-11.1.0.patch 2021-02-17 18:49:14 UTC (rev 862617) @@ -0,0 +1,40 @@ +From 3cf2c0ade52eb1e25af7ceef30a62c81b6887bae Mon Sep 17 00:00:00 2001 +From: Tom Stellard <tstel...@redhat.com> +Date: Sat, 23 Jan 2021 03:10:11 +0000 +Subject: [PATCH] Hard-code LLVM_VERSION_MINOR to 0 to fix build with llvm + 11.1.0 + +--- + cmake/LLVMConfig.cmake | 2 +- + src/ispc_version.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/cmake/LLVMConfig.cmake b/cmake/LLVMConfig.cmake +index 8f5d6cf4..f6e1ef82 100644 +--- a/cmake/LLVMConfig.cmake ++++ b/cmake/LLVMConfig.cmake +@@ -38,7 +38,7 @@ find_package(LLVM REQUIRED CONFIG) + message(FATAL_ERROR "LLVM package can't be found. \ + Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.") + endif() +- set(LLVM_VERSION "LLVM_${LLVM_VERSION_MAJOR}_${LLVM_VERSION_MINOR}") ++ set(LLVM_VERSION "LLVM_${LLVM_VERSION_MAJOR}_0") + message(STATUS "Found LLVM ${LLVM_VERSION}") + + find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config +diff --git a/src/ispc_version.h b/src/ispc_version.h +index 75c2f38f..fa57042d 100644 +--- a/src/ispc_version.h ++++ b/src/ispc_version.h +@@ -42,7 +42,7 @@ + #define ISPC_VERSION "1.15.0" + #include <llvm/Config/llvm-config.h> + +-#define ISPC_LLVM_VERSION (LLVM_VERSION_MAJOR * 10000 + LLVM_VERSION_MINOR * 100) ++#define ISPC_LLVM_VERSION (LLVM_VERSION_MAJOR * 10000 + 0 * 100) + + #define ISPC_LLVM_8_0 80000 + #define ISPC_LLVM_9_0 90000 +-- +2.26.2 +