Date: Friday, March 9, 2018 @ 16:27:18
  Author: foutrelis
Revision: 318346

upgpkg: llvm 6.0.0-2

Add lit for running clang's (and other llvm thingies') test suites.

Modified:
  llvm/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-09 16:10:51 UTC (rev 318345)
+++ PKGBUILD    2018-03-09 16:27:18 UTC (rev 318346)
@@ -4,7 +4,7 @@
 
 pkgname=('llvm' 'llvm-libs' 'llvm-ocaml')
 pkgver=6.0.0
-pkgrel=1
+pkgrel=2
 _ocaml_ver=4.06.0
 arch=('x86_64')
 url="https://llvm.org/";
@@ -55,11 +55,17 @@
 package_llvm() {
   pkgdesc="Collection of modular and reusable compiler and toolchain 
technologies"
   depends=('llvm-libs' 'perl')
+  optdepends=('python-setuptools: for using lit (LLVM Integrated Tester)')
 
   cd "$srcdir/llvm-$pkgver.src/build"
 
   DESTDIR="$pkgdir" ninja install
 
+  # Include lit for running tests with clang and friends
+  pushd ../utils/lit
+  python3 setup.py install --root="$pkgdir" -O1
+  popd
+
   # Remove documentation sources
   rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo}
 

Reply via email to