Skip to content

Commit c1f338b

Browse files
authored
fix: remove spurious link to libpython (#343)
`libpython` is intended for host applications which wish to embed an interpreter w/o static linking. Binary modules should *not* link to `libpython` for symbols, and should instead bind to symbols provided by the host environment. See the section on `libpython` in PEP 513 for more details.
1 parent 1704f1c commit c1f338b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ add_subdirectory(tools/triton-shared-opt)
1616

1717
if (TRITON_SHARED_BUILD_CPU_BACKEND)
1818
add_triton_plugin(TritonShared ${CMAKE_CURRENT_SOURCE_DIR}/triton_shared.cc LINK_LIBS TritonSharedAnalysis TritonToLinalg TritonTilingExtIR)
19-
target_link_libraries(TritonShared PRIVATE Python3::Module pybind11::headers ${Python3_LIBRARIES})
19+
target_link_libraries(TritonShared PRIVATE Python3::Module pybind11::headers)
2020
endif()

0 commit comments

Comments
 (0)