diff options
author | Travis Tilley <ttilley@gmail.com> | 2015-06-20 06:46:02 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-29 12:40:58 +0000 |
commit | 77dcfa6576a0cd38c2fb5248e523a6696e31f0dd (patch) | |
tree | 76d73de2b187cde990328c3c7b27459859c8cb2d /main/llvm/APKBUILD | |
parent | e361c8797a1c947cdf4ce8a6289911521bc59cde (diff) | |
download | aports-77dcfa6576a0cd38c2fb5248e523a6696e31f0dd.tar.bz2 aports-77dcfa6576a0cd38c2fb5248e523a6696e31f0dd.tar.xz |
main/llvm: attempt to fix running the llvm test suite under pax
Diffstat (limited to 'main/llvm/APKBUILD')
-rw-r--r-- | main/llvm/APKBUILD | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD index da211d97f9..b4b0f20a6a 100644 --- a/main/llvm/APKBUILD +++ b/main/llvm/APKBUILD @@ -10,7 +10,7 @@ url="http://llvm.org/" license="UOI-NCSA" depends="" depends_dev="perl" -makedepends="$depends_dev cmake make flex bison groff musl-dev binutils-dev isl-dev libffi-dev libxml2-dev libxml2-utils zlib-dev ncurses-dev python python-dev py-sphinx chrpath" +makedepends="$depends_dev paxmark cmake make flex bison groff musl-dev binutils-dev isl-dev libffi-dev libxml2-dev libxml2-utils zlib-dev ncurses-dev python python-dev py-sphinx chrpath" [ "${use_svn}" = "true" ] && makedepends="$makedepends subversion" install= subpackages="clang clang-doc:clang_doc $pkgname-dev $pkgname-doc $pkgname-libs" @@ -112,6 +112,7 @@ _cmake_final_flags="\ -DCLANG_PLUGIN_SUPPORT=YES \ -DLINK_POLLY_INTO_TOOLS=YES \ -DLLVM_BUILD_DOCS=YES \ + -DLLVM_BUILD_TESTS=YES \ -DLLVM_ENABLE_CXX1Y=YES \ -DLLVM_ENABLE_FFI=YES \ -DLLVM_ENABLE_SPHINX=YES \ @@ -148,7 +149,7 @@ prepare() { mv "$srcdir"/clang-tools-extra-$pkgver.src \ "$_srcdir_clang_extra" || return 1 mv "$srcdir"/polly-$pkgver.src \ - "$_srcdir_polly" || return 1 + "$_srcdir_polly" || return 1 mv "$srcdir"/compiler-rt-$pkgver.src \ "$_srcdir_compiler_rt" || return 1 @@ -242,6 +243,11 @@ build() { "${_srcdir}" || return 1 make || return 1 + + paxmark m bin/llvm-rtdyld + paxmark m bin/lli + paxmark m bin/lli-child-target + make install || return 1 cflags="${orig_cflags} -DNDEBUG" @@ -267,18 +273,21 @@ build() { make || return 1 - # llvm tests don't run under PaX, almost certainly due to MCJIT - # TODO: detect when running a vanilla kernel and run all tests - # make check-llvm || return 1 + paxmark m bin/llvm-rtdyld + paxmark m bin/lli + paxmark m bin/lli-child-target - make check-clang || return 1 + paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests + paxmark m unittests/Support/SupportTests + + make check-llvm || return 1 + make check-clang || return 1 + make check-compiler-rt || return 1 + make check-polly || return 1 # 27 failures, all related to clang-tidy. # clang-format/clang-modernize and friends pass their test suites # make check-clang-tools || return 1 - - make check-compiler-rt || return 1 - make check-polly || return 1 } package() { |