[Mlir-commits] [mlir] Added free-threading CPython mode support in MLIR Python bindings (PR #107103)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jan 2 05:18:41 PST 2025
================
@@ -659,12 +659,13 @@ function(add_mlir_python_extension libname extname)
elseif(ARG_PYTHON_BINDINGS_LIBRARY STREQUAL "nanobind")
nanobind_add_module(${libname}
NB_DOMAIN mlir
+ FREE_THREADED
${ARG_SOURCES}
)
if (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL)
# Avoids warnings from upstream nanobind.
- target_compile_options(nanobind-static
+ target_compile_options(${libname}
----------------
vfdev-5 wrote:
This is incorrect and hope to be fixed with https://github.com/llvm/llvm-project/pull/121477
https://github.com/llvm/llvm-project/pull/107103
More information about the Mlir-commits
mailing list