From: Michał Górny Date: Wed, 18 Jan 2017 21:49:22 +0000 (+0100) Subject: sys-devel/clang: Build tests in src_compile() X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8797c1711155c9c6cb3f2f1b8486eba0a9a23d82;p=gentoo.git sys-devel/clang: Build tests in src_compile() Build tests in src_compile() (when enabled) rather than delaying that until src_test(). This ensures a better split between compilation phase and testing in multilib builds, i.e. you can turn off other distcc servers when first ABI starts testing. Also, it guarantees that building the tests will be tested for all ABIs, even if the actual tests fail for one of them. --- diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 3dfce9b7a44a..035ac3d35270 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -141,8 +141,7 @@ multilib_src_configure() { -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" - # TODO: get them properly conditional - #-DLLVM_BUILD_TESTS=$(usex test) + -DLLVM_BUILD_TESTS=$(usex test) # these are not propagated reliably, so redefine them -DLLVM_ENABLE_EH=ON