diff options
author | xentec <xentec@aix0.eu> | 2017-10-23 18:28:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-14 18:42:44 +0100 |
commit | bc087384329e97ff13060f91e4cb3290492493ee (patch) | |
tree | 9223eb8aaa31da93e8f19e945bb1f4061abd7a2f /main/compiler-rt | |
parent | 60c32c79a11ee7715f20aeebd381299120c43eb0 (diff) | |
download | aports-bc087384329e97ff13060f91e4cb3290492493ee.tar.bz2 aports-bc087384329e97ff13060f91e4cb3290492493ee.tar.xz |
main/compiler-rt: upgrade to 5.0.0
Diffstat (limited to 'main/compiler-rt')
-rw-r--r-- | main/compiler-rt/APKBUILD | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD index 2ed1acc739..b876450203 100644 --- a/main/compiler-rt/APKBUILD +++ b/main/compiler-rt/APKBUILD @@ -2,9 +2,9 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=compiler-rt # Note: Update together with llvm. -pkgver=4.0.0 +pkgver=5.0.0 pkgrel=0 -_vermajor=${pkgver%%.*} +_llvmver=${pkgver%%.*} pkgdesc="LLVM compiler-rt runtime libraries" arch="all" url="http://llvm.org/" @@ -12,30 +12,46 @@ license="UOI-NCSA" makedepends=" cmake linux-headers - llvm-dev>=$_vermajor - llvm-static>=$_vermajor + clang + llvm-dev>=$_llvmver + llvm-static>=$_llvmver python2 " -source="http://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz" +checkdepends="llvm-test-utils>=$_llvmver" +source="https://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz" builddir="$srcdir/$pkgname-$pkgver.src" build() { mkdir -p "$builddir"/build cd "$builddir"/build + # compiler-rt uses llvm intrinsic types for testing + # and therefore requires clang cmake .. \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCOMPILER_RT_INCLUDE_TESTS=ON \ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ - -DCOMPILER_RT_BUILD_XRAY=OFF \ - || return 1 - make || return 1 + -DCOMPILER_RT_BUILD_XRAY=OFF + + make +} + +check() { + cd "$builddir"/build + # remove test that does not work with PaX kernel + rm ../test/builtins/Unit/enable_execute_stack_test.c \ + ../test/builtins/Unit/clear_cache_test.c + make check-compiler-rt } package() { cd "$builddir"/build - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install cd "$pkgdir" @@ -46,4 +62,4 @@ package() { esac } -sha512sums="ed52436a2399ca82c1af46a523e89e88c23367f74cd110f0267af49a72aa4912ae8f48c6093e6b01c9ea68c48354a12201d26baf721d254fb017ddb98af2e3dd compiler-rt-4.0.0.src.tar.xz" +sha512sums="5f3fd49736fba35232b0baa19a5f03c4ab3bf85ec16f23355eb3c516fe6d861c14272c224ca2f2092a80636df4307e49a3df1b60a3791949b3f1ba4a0c8c81fb compiler-rt-5.0.0.src.tar.xz" |