commit:     ce06430cc16ea24ae1b63dc3a9c44412ea632b7a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 15:16:19 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 15:26:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce06430c

llvm-core/mlir: Install libraries needed for flang tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 llvm-core/mlir/mlir-21.0.0.9999.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/llvm-core/mlir/mlir-21.0.0.9999.ebuild 
b/llvm-core/mlir/mlir-21.0.0.9999.ebuild
index 73ba1e3228b6..d69b14b4bb5c 100644
--- a/llvm-core/mlir/mlir-21.0.0.9999.ebuild
+++ b/llvm-core/mlir/mlir-21.0.0.9999.ebuild
@@ -65,6 +65,9 @@ check_distribution_components() {
                                        # dylib
                                        MLIR)
                                                ;;
+                                       # installed test libraries
+                                       
MLIRTestAnalysis|MLIRTestDialect|MLIRTestIR)
+                                               ;;
                                        # static libraries
                                        MLIR*)
                                                continue
@@ -117,6 +120,11 @@ get_distribution_components() {
                mlir_c_runner_utils
                mlir_float16_utils
                mlir_runner_utils
+
+               # test libraries required by flang
+               MLIRTestAnalysis
+               MLIRTestDialect
+               MLIRTestIR
        )
 
        if multilib_is_native_abi; then
@@ -151,7 +159,7 @@ multilib_src_configure() {
                -DLLVM_BUILD_LLVM_DYLIB=ON
                -DMLIR_BUILD_MLIR_C_DYLIB=OFF
                -DMLIR_LINK_MLIR_DYLIB=ON
-               -DMLIR_INCLUDE_TESTS=$(usex test)
+               -DMLIR_INCLUDE_TESTS=ON
                -DMLIR_INCLUDE_INTEGRATION_TESTS=OFF
                -DLLVM_DISTRIBUTION_COMPONENTS=$(get_distribution_components)
                # this enables installing mlir-tblgen and mlir-pdll

Reply via email to