From 9b547d968af83cc57f4712dd1a134ede3abc4fd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 23 Dec 2016 11:51:42 +0100 Subject: [PATCH] sys-libs/compiler-rt: Support running built-in tests --- sys-libs/compiler-rt/compiler-rt-9999.ebuild | 51 +++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild index 75abf2dd6d22..a48b4738680e 100644 --- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild @@ -20,12 +20,13 @@ EGIT_REPO_URI="http://llvm.org/git/compiler-rt.git LICENSE="|| ( UoI-NCSA MIT )" SLOT="0/${PV%.*}" KEYWORDS="" -IUSE="" +IUSE="test" RDEPEND=" ! 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' +} + src_install() { cmake-utils_src_install -- 2.26.2