[Mlir-commits] [mlir] [MLIR][Python] Do not install ExecutionEngine wrapper when disabled (PR #211250)

Anutosh Bhat llvmlistbot at llvm.org
Thu Jul 23 00:02:09 PDT 2026


================
@@ -41,15 +41,23 @@ declare_mlir_python_sources(MLIRPythonSources.Core.Python.Extras
     extras/meta.py
 )
 
+set(_execution_engine_python_sources)
+if(MLIR_ENABLE_EXECUTION_ENGINE)
+  list(APPEND _execution_engine_python_sources
+    execution_engine.py
+    _mlir_libs/_mlirExecutionEngine.pyi
+  )
+endif()
+
----------------
anutosh491 wrote:

Added a comment explaining that the source group remains unconditional because runtime/*.py contains generic memref helpers, while only the wrapper and type stub depend on _mlirExecutionEngine.

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


More information about the Mlir-commits mailing list