We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e14b8a commit 113534dCopy full SHA for 113534d
mlir/cmake/modules/AddMLIRPython.cmake
@@ -709,7 +709,7 @@ function(add_mlir_python_extension libname extname)
709
# NanobindAdaptors.h uses PyClassMethod_New to build `pure_subclass`es but nanobind
710
# doesn't declare this API as undefined in its linker flags. So we need to declare it as such
711
# for downstream users that do not do something like `-undefined dynamic_lookup`.
712
- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-U -Wl,_PyClassMethod_New")
+ target_link_options(${libname} PUBLIC "LINKER:-U,_PyClassMethod_New")
713
endif()
714
715
0 commit comments