[Mlir-commits] [mlir] 1ce15b0 - [mlir] Disable some tests when the execution engine is disabled (#220741)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Sep 3 05:18:10 PDT 2026


Author: Tulio Magno Quites Machado Filho
Date: 2026-09-03T09:18:05-03:00
New Revision: 1ce15b097423a79f06a0f6777fbb8254db89d2e1

URL: https://github.com/llvm/llvm-project/commit/1ce15b097423a79f06a0f6777fbb8254db89d2e1
DIFF: https://github.com/llvm/llvm-project/commit/1ce15b097423a79f06a0f6777fbb8254db89d2e1.diff

LOG: [mlir] Disable some tests when the execution engine is disabled (#220741)

It's possible to have a scenario where the native target is enabled, but
the execution engine is not, e.g. when trying to avoid an issue with the
execution engine.

In that case, we need to disable the tests that depend on: mlir-runner,
mlir_async_runtime, mlir-capi-execution-engine-test,
mlir-capi-global-constructors-test, mlir_c_runner_utils,
mlir_runner_utils and mlir_float16_utils.

Added: 
    

Modified: 
    mlir/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
index 689565cccf975..1603f03558ee7 100644
--- a/mlir/test/CMakeLists.txt
+++ b/mlir/test/CMakeLists.txt
@@ -170,8 +170,13 @@ set(MLIR_TEST_DEPENDS ${MLIR_TEST_DEPENDS}
 # useless binaries.
 if(LLVM_ENABLE_PIC AND TARGET ${LLVM_NATIVE_ARCH})
   list(APPEND MLIR_TEST_DEPENDS
-    mlir-runner
     llc
+  )
+endif()
+# The native target may be available but the execution engine may not.
+if(LLVM_ENABLE_PIC AND MLIR_ENABLE_EXECUTION_ENGINE)
+  list(APPEND MLIR_TEST_DEPENDS
+    mlir-runner
     mlir_async_runtime
     mlir-capi-execution-engine-test
     mlir-capi-global-constructors-test


        


More information about the Mlir-commits mailing list