sys-devel/clang: Build tests in src_compile()
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Jan 2017 21:49:22 +0000 (22:49 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 19 Jan 2017 09:13:58 +0000 (10:13 +0100)
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.

sys-devel/clang/clang-9999.ebuild

index 3dfce9b7a44aae84c4d2ca135b1ed894e1b88092..035ac3d352709dadf427db76f914747c7bf310a7 100644 (file)
@@ -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