[arch-commits] Commit in intel-graphics-compiler/repos/community-x86_64 (3 files)

Daniel Bermond dbermond at archlinux.org
Mon May 4 15:55:00 UTC 2020


    Date: Monday, May 4, 2020 @ 15:55:00
  Author: dbermond
Revision: 624735

archrelease: copy trunk to community-x86_64

Added:
  intel-graphics-compiler/repos/community-x86_64/010-igc-fix-build.patch
    (from rev 624734, intel-graphics-compiler/trunk/010-igc-fix-build.patch)
  intel-graphics-compiler/repos/community-x86_64/PKGBUILD
    (from rev 624734, intel-graphics-compiler/trunk/PKGBUILD)
Deleted:
  intel-graphics-compiler/repos/community-x86_64/PKGBUILD

-------------------------+
 010-igc-fix-build.patch |   19 ++++++++++++
 PKGBUILD                |   72 ++++++++++++++++++++++++----------------------
 2 files changed, 58 insertions(+), 33 deletions(-)

Copied: intel-graphics-compiler/repos/community-x86_64/010-igc-fix-build.patch (from rev 624734, intel-graphics-compiler/trunk/010-igc-fix-build.patch)
===================================================================
--- 010-igc-fix-build.patch	                        (rev 0)
+++ 010-igc-fix-build.patch	2020-05-04 15:55:00 UTC (rev 624735)
@@ -0,0 +1,19 @@
+diff --git a/IGC/CMakeLists.txt b/IGC/CMakeLists.txt
+index 8c9a5fcc..3b5e88cf 100644
+--- a/IGC/CMakeLists.txt
++++ b/IGC/CMakeLists.txt
+@@ -3271,8 +3271,12 @@ endif()
+ if(LLVM_LINK_LLVM_DYLIB)
+     # LLVM was built and configured in a way that tools (in our case IGC) should be linked
+     # against single LLVM dynamic library.
+-    set(IGC_BUILD__LLVM_LIBS_TO_LINK "/usr/local/lib/libLLVM-${LLVM_VERSION_MAJOR}.so")
+-    message(STATUS "[IGC] Link against LLVM dylib ${IGC_BUILD__LLVM_LIBS_TO_LINK}")
++    find_library(IGC_BUILD__LLVM_LIBS_TO_LINK "libLLVM-${LLVM_VERSION_MAJOR}.so")
++    if(IGC_BUILD__LLVM_LIBS_TO_LINK)
++      message(STATUS "[IGC] Link against LLVM dylib ${IGC_BUILD__LLVM_LIBS_TO_LINK}")
++    else()
++      message(FATAL_ERROR "[IGC] Could not find the LLVM dylib. Aborting.")
++    endif()
+ else()
+     # LLVM was built into multiple libraries (static or shared).
+     message(STATUS "[IGC] Link against LLVM static or shared component libs")

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-04 15:54:31 UTC (rev 624734)
+++ PKGBUILD	2020-05-04 15:55:00 UTC (rev 624735)
@@ -1,33 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=intel-graphics-compiler
-epoch=1
-pkgver=1.0.3826
-pkgrel=1
-pkgdesc="Intel Graphics Compiler for OpenCL"
-arch=(x86_64)
-url="https://github.com/intel/intel-graphics-compiler"
-license=(MIT)
-depends=(llvm-libs intel-opencl-clang)
-makedepends=(cmake clang llvm zlib python)
-options=(!emptydirs)
-source=("${url}/archive/igc-${pkgver}.tar.gz")
-sha256sums=('07b3d7685fb2a4333859ecb97e66ce41ca233d74388cdb0d06c952de288becc8')
-
-build() {
-    cmake -B build -S ${pkgname}-igc-${pkgver} \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_INSTALL_LIBDIR=lib \
-        -DIGC_OPTION__ARCHITECTURE_TARGET='Linux64' \
-        -DIGC_PREFERRED_LLVM_VERSION='10.0.0' \
-        -DINSTALL_GENX_IR=ON \
-        -Wno-dev
-    make -C build
-}
-
-package() {
-    make -C build DESTDIR="${pkgdir}" install
-    install -D -m644 ${pkgname}-igc-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: intel-graphics-compiler/repos/community-x86_64/PKGBUILD (from rev 624734, intel-graphics-compiler/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-04 15:55:00 UTC (rev 624735)
@@ -0,0 +1,39 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=intel-graphics-compiler
+epoch=1
+pkgver=1.0.3864
+pkgrel=1
+pkgdesc="Intel Graphics Compiler for OpenCL"
+arch=(x86_64)
+url="https://github.com/intel/intel-graphics-compiler"
+license=(MIT)
+depends=(llvm-libs intel-opencl-clang)
+makedepends=(cmake clang llvm zlib python)
+options=(!emptydirs)
+source=("${url}/archive/igc-${pkgver}.tar.gz"
+        "010-igc-fix-build.patch")
+sha256sums=('ec4595c56e0ed7287c1847b3ea07b0053873b20b4d44a3fa23f8d8a63919242d'
+            'ce2df5488a57a84e33a1a9eae8d8198b6b21c589e2a3d9deabae141e34a095aa')
+
+prepare() {
+    patch -d ${pkgname}-igc-${pkgver} -Np1 -i "${srcdir}"/010-igc-fix-build.patch
+}
+
+build() {
+    cmake -B build -S ${pkgname}-igc-${pkgver} \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -DIGC_OPTION__ARCHITECTURE_TARGET='Linux64' \
+        -DIGC_PREFERRED_LLVM_VERSION='10.0.0' \
+        -DINSTALL_GENX_IR=ON \
+        -Wno-dev
+    make -C build
+}
+
+package() {
+    make -C build DESTDIR="${pkgdir}" install
+    install -D -m644 ${pkgname}-igc-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}


More information about the arch-commits mailing list