Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/compiler-rt/
Date: Tue, 03 Jan 2017 21:22:20
Message-Id: 1483478531.57751e10f069cebc4d25a87fc311c786745b72cb.mgorny@gentoo
1 commit: 57751e10f069cebc4d25a87fc311c786745b72cb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 19:56:44 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 21:22:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57751e10
7
8 sys-libs/compiler-rt: Run builtin tests for all ABIs
9
10 sys-libs/compiler-rt/compiler-rt-9999.ebuild | 27 ++++++++++++++++++++-------
11 1 file changed, 20 insertions(+), 7 deletions(-)
12
13 diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
14 index ebb8b2b..614c675 100644
15 --- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild
16 +++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
17 @@ -64,6 +64,10 @@ src_configure() {
18 cmake-utils_src_configure
19 }
20
21 +run_tests_for_abi() {
22 + local ABI=${1}
23 +}
24 +
25 src_test() {
26 # prepare a test compiler
27 local clang_version=4.0.0
28 @@ -103,13 +107,22 @@ src_test() {
29 done
30 } > Makefile || die
31
32 - # use -k to run all tests even if some fail
33 - emake -k \
34 - CC="${BUILD_DIR}/bin/clang" \
35 - CFLAGS='' \
36 - CPPFLAGS='-I../../../lib/builtins' \
37 - LDFLAGS='-rtlib=compiler-rt' \
38 - LDLIBS='-lm'
39 + local ABI
40 + for ABI in $(get_all_abis); do
41 + # not supported at all at the moment
42 + [[ ${ABI} == x32 ]] && continue
43 +
44 + rm -f "${tests[@]}" || die
45 +
46 + einfo "Running tests for ABI=${ABI}"
47 + # use -k to run all tests even if some fail
48 + emake -k \
49 + CC="${BUILD_DIR}/bin/clang" \
50 + CFLAGS="$(get_abi_CFLAGS)" \
51 + CPPFLAGS='-I../../../lib/builtins' \
52 + LDFLAGS='-rtlib=compiler-rt' \
53 + LDLIBS='-lm'
54 + done
55 }
56
57 src_install() {