[Mlir-commits] [mlir] [mlir] Fix tests not to depend `llvm-strings` in standalone build (PR #185187)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Mar 7 05:00:09 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Michał Górny (mgorny)

<details>
<summary>Changes</summary>

Move the `llvm-strings` test dependency into the non-standalone test dependency block, to fix standalone builds after #<!-- -->182846.  While at it, reformat the block to make it more visible.

---
Full diff: https://github.com/llvm/llvm-project/pull/185187.diff


1 Files Affected:

- (modified) mlir/test/CMakeLists.txt (+8-2) 


``````````diff
diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
index c8e4876058e28..a21451f91d0ca 100644
--- a/mlir/test/CMakeLists.txt
+++ b/mlir/test/CMakeLists.txt
@@ -102,7 +102,6 @@ configure_lit_site_cfg(
   )
 
 set(MLIR_TEST_DEPENDS
-  llvm-strings
   mlir-capi-ir-test
   mlir-capi-irdl-test
   mlir-capi-llvm-test
@@ -126,7 +125,14 @@ set(MLIR_TEST_DEPENDS
   tblgen-to-irdl
   )
 if(NOT MLIR_STANDALONE_BUILD)
-  list(APPEND MLIR_TEST_DEPENDS FileCheck count not split-file yaml2obj)
+  list(APPEND MLIR_TEST_DEPENDS
+    FileCheck
+    count
+    llvm-strings
+    not
+    split-file
+    yaml2obj
+    )
 endif()
 # Examples/standalone/test.toy (vis-a-vis the standalone example) depends on these.
 if(LLVM_INCLUDE_EXAMPLES)

``````````

</details>


https://github.com/llvm/llvm-project/pull/185187


More information about the Mlir-commits mailing list