[arch-commits] Commit in polly/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Feb 17 20:43:58 UTC 2021
Date: Wednesday, February 17, 2021 @ 20:43:58
Author: foutrelis
Revision: 408472
archrelease: copy trunk to testing-x86_64
Added:
polly/repos/testing-x86_64/
polly/repos/testing-x86_64/PKGBUILD
(from rev 408471, polly/trunk/PKGBUILD)
polly/repos/testing-x86_64/support-linking-ScopPassManager-against-LLVM-dylib.patch
(from rev 408471, polly/trunk/support-linking-ScopPassManager-against-LLVM-dylib.patch)
----------------------------------------------------------+
PKGBUILD | 63 +++++++++++++
support-linking-ScopPassManager-against-LLVM-dylib.patch | 28 +++++
2 files changed, 91 insertions(+)
Copied: polly/repos/testing-x86_64/PKGBUILD (from rev 408471, polly/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-02-17 20:43:58 UTC (rev 408472)
@@ -0,0 +1,63 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=polly
+pkgver=11.1.0
+pkgrel=1
+pkgdesc="High-level loop and data-locality optimizer and optimization infrastructure for LLVM"
+arch=('x86_64')
+url="https://polly.llvm.org/"
+license=('custom:Apache 2.0 with LLVM Exception')
+depends=('gcc-libs')
+makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx')
+_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
+source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig}
+ $_source_base/llvm-$pkgver.src.tar.xz{,.sig}
+ support-linking-ScopPassManager-against-LLVM-dylib.patch)
+sha256sums=('580fd3b0b9e1247c3e40afa3067ac5bea70e9815750c5bd448fb7428e310390c'
+ 'SKIP'
+ 'ce8508e318a01a63d4e8b3090ab2ded3c598a50258cc49e2625b9120d4c03ea5'
+ 'SKIP'
+ 'ce3c528eabef1ef3a4c3ca69a527b98b4f2e924069f24e68ced5462c95263ba6')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver.src"
+ mkdir build
+
+ # https://reviews.llvm.org/D85281
+ patch -Np2 -i ../support-linking-ScopPassManager-against-LLVM-dylib.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+
+ cmake .. -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_BUILD_TESTS=ON \
+ -DLLVM_BUILD_DOCS=ON \
+ -DLLVM_ENABLE_SPHINX=ON \
+ -DSPHINX_WARNINGS_AS_ERRORS=OFF \
+ -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
+ -DLLVM_BUILD_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
+ ninja
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+ ninja check-polly
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+
+ DESTDIR="$pkgdir" ninja install
+ install -Dm644 ../LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Remove documentation sources
+ rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo}
+}
+
+# vim:set ts=2 sw=2 et:
Copied: polly/repos/testing-x86_64/support-linking-ScopPassManager-against-LLVM-dylib.patch (from rev 408471, polly/trunk/support-linking-ScopPassManager-against-LLVM-dylib.patch)
===================================================================
--- testing-x86_64/support-linking-ScopPassManager-against-LLVM-dylib.patch (rev 0)
+++ testing-x86_64/support-linking-ScopPassManager-against-LLVM-dylib.patch 2021-02-17 20:43:58 UTC (rev 408472)
@@ -0,0 +1,28 @@
+From 96b02808afa7eb043b9968b07424cc96bc8d94a6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
+Date: Wed, 5 Aug 2020 10:22:32 +0200
+Subject: [PATCH] [Polly] Support linking ScopPassManager against LLVM dylib
+
+Link ScopPassManager to LLVM dylib target if LLVM_LINK_LLVM_DYLIB
+is enabled. This fixes build failures on systems where static LLVM
+libraries are not installed.
+
+Differential Revision: https://reviews.llvm.org/D85281
+---
+ polly/unittests/ScopPassManager/CMakeLists.txt | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/polly/unittests/ScopPassManager/CMakeLists.txt b/polly/unittests/ScopPassManager/CMakeLists.txt
+index ed3bbd6dcef..88300144af3 100644
+--- a/polly/unittests/ScopPassManager/CMakeLists.txt
++++ b/polly/unittests/ScopPassManager/CMakeLists.txt
+@@ -1,5 +1,7 @@
+-llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
+ add_polly_unittest(ScopPassManagerTests
+ PassManagerTest.cpp
+ )
+-target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
++if (NOT LLVM_LINK_LLVM_DYLIB)
++ llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
++ target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
++endif()
More information about the arch-commits
mailing list