Skip to content

Commit

Permalink
fix configure.py not regen if deleted from build
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Dec 12, 2023
1 parent 2f414c7 commit ffce0ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ declare_mlir_dialect_python_bindings(
)

configure_file(compiler/aiecc/configure.py.in aie/compiler/aiecc/configure.py)
add_custom_target(aiecc_configure
ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/aie/compiler/aiecc/configure.py"
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/aie/compiler/aiecc/configure.py"
)

# Note that compiler/ is not globbed but compiler/aiecc/
Expand All @@ -67,7 +67,6 @@ declare_mlir_python_sources(AIEPythonSources.Compiler
SOURCES_GLOB
compiler/aiecc/*.py
)
add_dependencies(AIEPythonSources.Compiler aiecc_configure)

################################################################################
# Extensions
Expand Down

0 comments on commit ffce0ed

Please sign in to comment.