commit: 583ef0ad484156ebd8b0aa343db59652aa99a5e3 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jun 28 12:13:33 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jun 28 12:25:50 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=583ef0ad
llvm-core/clang: Workaround non-native test failures with z3-devel Apply a workaround to prevent non-native builds from detecting the Z3 development files, in order to skip the relevant tests. These tests attempt to compile a shared library using `CMAKE_CXX_COMPILER` passed down to lit, and they do not respect multilib flags, effectively causing an ABI mismatch. Bug: https://github.com/llvm/llvm-project/pull/145731#issuecomment-3015197983 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> llvm-core/clang/clang-21.0.0.9999.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/llvm-core/clang/clang-21.0.0.9999.ebuild b/llvm-core/clang/clang-21.0.0.9999.ebuild index 063413a4d610..ec6d5013a836 100644 --- a/llvm-core/clang/clang-21.0.0.9999.ebuild +++ b/llvm-core/clang/clang-21.0.0.9999.ebuild @@ -318,6 +318,15 @@ multilib_src_configure() { mycmakeargs+=( -DCLANG_INCLUDE_DOCS=${build_docs} ) + else + # A few tests compile a native z3 LD_PRELOAD library that does + # not respect multilib flags. Apply a hack to skip these tests + # for the time being. + # https://github.com/llvm/llvm-project/pull/145731#issuecomment-3015197983 + mycmakeargs+=( + -DZ3_INCLUDE_DIR=/dev/null + -DZ3_LIBRARIES=/dev/null + ) fi if multilib_native_use extra; then mycmakeargs+=(
