Skip to content

Commit ee9070d

Browse files
committed
Fix python CAPI linkage
1 parent 1287334 commit ee9070d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ add_mlir_python_common_capi_library(GcPythonCAPI
9797
MLIRPythonExtension.RegisterEverything
9898
MLIRPythonSources.Core
9999
)
100-
target_link_libraries(GcPythonCAPI PUBLIC GcInterface)
100+
# todo: replace with a gpu rutnime library once we have an appropriate target
101+
get_property(gc_passes_libs GLOBAL PROPERTY GC_PASS_LIBS)
102+
target_link_libraries(GcPythonCAPI PUBLIC GcInterface ${gc_passes_libs})
101103

102104
################################################################################
103105
# Instantiation of all Python modules

0 commit comments

Comments
 (0)