Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions compiler/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -416,29 +416,6 @@ add_custom_target(IREECompilerPythonDylibFiles

add_dependencies(IREECompilerPythonModules IREECompilerPythonDylibFiles)

################################################################################
# Windows DLL colocation fix
# On Windows, the nanobind-mlir.dll ends up in iree/build/_mlir_libs/ but we
# need to copy it to iree/compiler/_mlir_libs/ for the Python extensions to find
# it at runtime.
################################################################################
if(WIN32)
set(_nanobind_src "${_PYTHON_BUILD_PREFIX}/iree/build/_mlir_libs/nanobind-mlir.dll")
set(_nanobind_dst "${_PYTHON_BUILD_PREFIX}/iree/compiler/_mlir_libs/nanobind-mlir.dll")
add_custom_command(
OUTPUT "${_nanobind_dst}"
DEPENDS "${_nanobind_src}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_nanobind_src}" "${_nanobind_dst}"
COMMENT "Copying nanobind-mlir.dll to iree/compiler/_mlir_libs/ for Windows DLL loading"
)
add_custom_target(IREECompilerPythonNanobindCopy
DEPENDS "${_nanobind_dst}"
)
add_dependencies(IREECompilerPythonNanobindCopy IREECompilerBuildPythonModules)
add_dependencies(IREECompilerPythonModules IREECompilerPythonNanobindCopy)
endif()

################################################################################
# Subdirectories
################################################################################
Expand Down
2 changes: 1 addition & 1 deletion third_party/llvm-project
Submodule llvm-project updated 949 files
Loading