[llvm] [mlir] [CMake] add `SKIP` to `add_lit_testsuites` (PR #157176)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 15:48:28 PDT 2025


================
@@ -2211,6 +2211,17 @@ function(add_lit_testsuites project directory)
       if (NOT (is_inputs EQUAL -1 AND is_output EQUAL -1))
         continue()
       endif()
+      set(_should_skip FALSE)
+      foreach(skip ${ARG_SKIP})
+        string(FIND ${lit_suite} ${skip} is_skip)
+        if (NOT is_skip EQUAL -1)
----------------
joker-eph wrote:

```suggestion
  foreach(skip IN LISTS ARG_SKIP)
    if(lit_suite MATCHES "${skip}")
      set(_should_skip TRUE)
```

Would that work?

(You're using FIND which I'm not sure if an exact match)

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


More information about the llvm-commits mailing list