[Mlir-commits] [mlir] [MLIR][Python][NOMERGE] demo building bindings with no CAPI aggregate and using mlir aggregate (PR #161782)

Maksim Levental llvmlistbot at llvm.org
Thu Oct 2 23:18:45 PDT 2025


================
@@ -0,0 +1,32 @@
+add_compile_definitions("MLIR_PYTHON_PACKAGE_PREFIX=mlir.")
----------------
makslevental wrote:

we need to set `-DMLIR_PYTHON_PACKAGE_PREFIX=mlir` so that `StandReallyAloneExtensionNanobind.cpp` compiles with the right [`#define`](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir-c/Bindings/Python/Interop.h#L50-L85)s (otherwise APIs with `MlirContext` and etc. won't work).

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


More information about the Mlir-commits mailing list