Skip to content

Commit c3114a1

Browse files
authored
Switch to public linker options
1 parent d98844b commit c3114a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/cmake/modules/AddMLIRPython.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ function(add_mlir_python_extension libname extname)
709709
# NanobindAdaptors.h uses PyClassMethod_New to build `pure_subclass`es but nanobind
710710
# doesn't declare this API as undefined in its linker flags. So we need to declare it as such
711711
# for downstream users that do not do something like `-undefined dynamic_lookup`.
712-
target_link_options(${libname} PRIVATE "LINKER:-U,_PyClassMethod_New")
712+
target_link_options(${libname} PUBLIC "LINKER:-U,_PyClassMethod_New")
713713
endif()
714714
endif()
715715

0 commit comments

Comments
 (0)