[Mlir-commits] [mlir] [mlir][Python] create MLIRPythonSupport (PR #171775)
Maksim Levental
llvmlistbot at llvm.org
Fri Dec 26 14:00:02 PST 2025
================
@@ -318,8 +368,24 @@ function(add_mlir_python_modules name)
"ROOT_PREFIX;INSTALL_PREFIX"
"COMMON_CAPI_LINK_LIBS;DECLARED_SOURCES"
${ARGN})
+
+ # TODO(max): do the same for MLIR_PYTHON_PACKAGE_PREFIX?
+ if(NOT MLIR_BINDINGS_PYTHON_NB_DOMAIN)
+ message(WARNING "MLIR_BINDINGS_PYTHON_NB_DOMAIN CMake var is not set - setting to a default `mlir`.\
+ It is highly recommend to set this to something unique so that your project's Python bindings do not collide with\
+ others'. See https://github.com/llvm/llvm-project/pull/171775 for more information.")
----------------
makslevental wrote:
done
https://github.com/llvm/llvm-project/pull/171775
More information about the Mlir-commits
mailing list