[Mlir-commits] [mlir] [mlir][python] declare `_PyClassMethod_New` undefined at link time (PR #121597)
Maksim Levental
llvmlistbot at llvm.org
Fri Jan 3 13:29:38 PST 2025
================
@@ -683,6 +683,13 @@ function(add_mlir_python_extension libname extname)
${eh_rtti_enable}
)
endif()
+
+ if(APPLE)
+ # NanobindAdaptors.h uses PyClassMethod_New to build `pure_subclass`es but nanobind
+ # doesn't declare this API as undefined in its linker flags. So we need to declare it as such
+ # for downstream users that do not do something like -undefined dynamic_lookup
----------------
makslevental wrote:
```suggestion
# for downstream users that do not do something like `-undefined dynamic_lookup`.
```
https://github.com/llvm/llvm-project/pull/121597
More information about the Mlir-commits
mailing list