commit: 95b6a805b1a6d75413eeb60b2f83e53a21443d5e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Aug 26 19:03:07 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Aug 26 20:02:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b6a805
sys-devel/clang: Disable extra tests w/o static-anal Tests for clang-tools-extra are disabled upstream if static-analyzer is disabled. This is related to the fact that clang-tidy requires it, and upstream did not split the tests properly (yet). Bug: https://bugs.gentoo.org/627974 sys-devel/clang/clang-4.0.1.ebuild | 6 +++++- sys-devel/clang/clang-5.0.9999.ebuild | 6 +++++- sys-devel/clang/clang-9999.ebuild | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/sys-devel/clang/clang-4.0.1.ebuild b/sys-devel/clang/clang-4.0.1.ebuild index 821cae0ab5b..91478e80294 100644 --- a/sys-devel/clang/clang-4.0.1.ebuild +++ b/sys-devel/clang/clang-4.0.1.ebuild @@ -193,7 +193,11 @@ multilib_src_test() { # respect TMPDIR! local -x LIT_PRESERVES_TMP=1 cmake-utils_src_make check-clang - multilib_is_native_abi && cmake-utils_src_make check-clang-tools + # clang-tidy requires [static-analyzer] and tests are not split + # correctly, so they are all disabled when static-analyzer is off + if multilib_is_native_abi && use static-analyzer; then + cmake-utils_src_make check-clang-tools + fi } src_install() { diff --git a/sys-devel/clang/clang-5.0.9999.ebuild b/sys-devel/clang/clang-5.0.9999.ebuild index 54f8aaa20cf..eac03c29693 100644 --- a/sys-devel/clang/clang-5.0.9999.ebuild +++ b/sys-devel/clang/clang-5.0.9999.ebuild @@ -196,7 +196,11 @@ multilib_src_test() { # respect TMPDIR! local -x LIT_PRESERVES_TMP=1 cmake-utils_src_make check-clang - multilib_is_native_abi && cmake-utils_src_make check-clang-tools + # clang-tidy requires [static-analyzer] and tests are not split + # correctly, so they are all disabled when static-analyzer is off + if multilib_is_native_abi && use static-analyzer; then + cmake-utils_src_make check-clang-tools + fi } src_install() { diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 010df120d1d..7b793aff3cd 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -200,7 +200,11 @@ multilib_src_test() { # respect TMPDIR! local -x LIT_PRESERVES_TMP=1 cmake-utils_src_make check-clang - multilib_is_native_abi && cmake-utils_src_make check-clang-tools + # clang-tidy requires [static-analyzer] and tests are not split + # correctly, so they are all disabled when static-analyzer is off + if multilib_is_native_abi && use static-analyzer; then + cmake-utils_src_make check-clang-tools + fi } src_install() {
