From ce06430cc16ea24ae1b63dc3a9c44412ea632b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 9 Feb 2025 16:16:19 +0100 Subject: [PATCH] llvm-core/mlir: Install libraries needed for flang tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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 73ba1e3228b60..d69b14b4bb5c4 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