diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-01-03 20:56:44 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-01-03 22:22:11 +0100 |
commit | 57751e10f069cebc4d25a87fc311c786745b72cb (patch) | |
tree | c82e39ccebe881b3674c5601f6c439f3f1810814 /sys-libs | |
parent | net-mail/mu: Install info page only if building mu4e (diff) | |
download | gentoo-57751e10f069cebc4d25a87fc311c786745b72cb.tar.gz gentoo-57751e10f069cebc4d25a87fc311c786745b72cb.tar.bz2 gentoo-57751e10f069cebc4d25a87fc311c786745b72cb.zip |
sys-libs/compiler-rt: Run builtin tests for all ABIs
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/compiler-rt/compiler-rt-9999.ebuild | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild index ebb8b2b4819b..614c6757497c 100644 --- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild @@ -64,6 +64,10 @@ src_configure() { cmake-utils_src_configure } +run_tests_for_abi() { + local ABI=${1} +} + src_test() { # prepare a test compiler local clang_version=4.0.0 @@ -103,13 +107,22 @@ src_test() { done } > Makefile || die - # use -k to run all tests even if some fail - emake -k \ - CC="${BUILD_DIR}/bin/clang" \ - CFLAGS='' \ - CPPFLAGS='-I../../../lib/builtins' \ - LDFLAGS='-rtlib=compiler-rt' \ - LDLIBS='-lm' + local ABI + for ABI in $(get_all_abis); do + # not supported at all at the moment + [[ ${ABI} == x32 ]] && continue + + rm -f "${tests[@]}" || die + + einfo "Running tests for ABI=${ABI}" + # use -k to run all tests even if some fail + emake -k \ + CC="${BUILD_DIR}/bin/clang" \ + CFLAGS="$(get_abi_CFLAGS)" \ + CPPFLAGS='-I../../../lib/builtins' \ + LDFLAGS='-rtlib=compiler-rt' \ + LDLIBS='-lm' + done } src_install() { |