Skip to content

Commit c161a40

Browse files
authored
Deps fixup for 'ninja python/dialects/_aie_ops_gen.py' (#2800)
1 parent 0f89e55 commit c161a40

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

include/aie/Dialect/AIE/IR/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ add_custom_target(GenerateAIEEventsTD
7777
DEPENDS ${GENERATED_EVENTS_TD_FILES}
7878
)
7979

80-
# Ensure generated event enums exist before any headers that depend on them
81-
add_dependencies(aie-headers GenerateAIEEventsTD)
82-
8380
# Add AIE attributes
8481
set(LLVM_TARGET_DEFINITIONS AIEAttrs.td)
8582
mlir_tablegen(AIEAttrs.h.inc -gen-attrdef-decls)

python/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ declare_mlir_dialect_python_bindings(
7272
DIALECT_NAME aie
7373
GEN_ENUM_BINDINGS_TD_FILE
7474
"dialects/AIEBinding.td"
75+
DEPENDS
76+
aie-headers
7577
)
7678

7779
declare_mlir_dialect_python_bindings(
@@ -81,6 +83,8 @@ declare_mlir_dialect_python_bindings(
8183
SOURCES
8284
dialects/aiex.py
8385
DIALECT_NAME aiex
86+
DEPENDS
87+
aie-headers
8488
)
8589

8690
declare_mlir_dialect_python_bindings(
@@ -90,6 +94,8 @@ declare_mlir_dialect_python_bindings(
9094
SOURCES
9195
dialects/aievec.py
9296
DIALECT_NAME aievec
97+
DEPENDS
98+
aie-headers
9399
)
94100

95101
configure_file(compiler/aiecc/configure.py.in aie/compiler/aiecc/configure.py)

0 commit comments

Comments
 (0)