[arch-commits] Commit in intel-graphics-compiler/trunk (2 files)

Daniel Bermond dbermond at archlinux.org
Mon May 4 15:54:32 UTC 2020


    Date: Monday, May 4, 2020 @ 15:54:31
  Author: dbermond
Revision: 624734

upgpkg: intel-graphics-compiler 1:1.0.3864-1

Added:
  intel-graphics-compiler/trunk/010-igc-fix-build.patch
Modified:
  intel-graphics-compiler/trunk/PKGBUILD

-------------------------+
 010-igc-fix-build.patch |   19 +++++++++++++++++++
 PKGBUILD                |   12 +++++++++---
 2 files changed, 28 insertions(+), 3 deletions(-)

Added: 010-igc-fix-build.patch
===================================================================
--- 010-igc-fix-build.patch	                        (rev 0)
+++ 010-igc-fix-build.patch	2020-05-04 15:54:31 UTC (rev 624734)
@@ -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")

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-04 15:29:08 UTC (rev 624733)
+++ PKGBUILD	2020-05-04 15:54:31 UTC (rev 624734)
@@ -3,7 +3,7 @@
 
 pkgname=intel-graphics-compiler
 epoch=1
-pkgver=1.0.3826
+pkgver=1.0.3864
 pkgrel=1
 pkgdesc="Intel Graphics Compiler for OpenCL"
 arch=(x86_64)
@@ -12,9 +12,15 @@
 depends=(llvm-libs intel-opencl-clang)
 makedepends=(cmake clang llvm zlib python)
 options=(!emptydirs)
-source=("${url}/archive/igc-${pkgver}.tar.gz")
-sha256sums=('07b3d7685fb2a4333859ecb97e66ce41ca233d74388cdb0d06c952de288becc8')
+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 \


More information about the arch-commits mailing list