File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,11 @@ function(generate_type_stubs module_name depends_target mlir_depends_target outp
130
130
OUTPUT ${NB_STUBGEN_OUTPUT}
131
131
COMMAND ${NB_STUBGEN_CMD}
132
132
WORKING_DIRECTORY "${CMAKE_CURRENT_FUNCTION_LIST_DIR} "
133
- DEPENDS "${mlir_depends_target} " "${depends_target} " MLIRPythonSources.Core.Python )
133
+ DEPENDS
134
+ "${mlir_depends_target} .extension._mlir.dso"
135
+ "${mlir_depends_target} .sources.MLIRPythonSources.Core.Python"
136
+ "${depends_target} "
137
+ )
134
138
set (_name "MLIRPythonModuleStubs_${_module} " )
135
139
add_custom_target ("${_name} " ALL DEPENDS ${NB_STUBGEN_OUTPUT} )
136
140
set (NB_STUBGEN_CUSTOM_TARGET "${_name} " PARENT_SCOPE )
@@ -292,7 +296,7 @@ function(add_mlir_python_modules name)
292
296
generate_type_stubs (
293
297
${_module_name}
294
298
${_extension_target}
295
- " ${modules_target} .extension._mlir.dso"
299
+ ${name}
296
300
"${CMAKE_CURRENT_SOURCE_DIR} /mlir/_mlir_libs/_mlir"
297
301
)
298
302
declare_mlir_python_sources (
You can’t perform that action at this time.
0 commit comments