Skip to content

Commit 56e56c9

Browse files
authored
[clang][CIR] Fix missing dependency of MLIRCIR (#116221)
Building `MLIRCIR` will report an error `CIROpsDialect.h.inc` not found. This is because `MLIRCIR` hasn't declared its dependence on the tablegen target `MLIRCIROpsIncGen`. This patch fixes the issue.
1 parent e24457a commit 56e56c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CIR/Dialect/IR/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ add_clang_library(MLIRCIR
33
CIRDialect.cpp
44
CIRTypes.cpp
55

6+
DEPENDS
7+
MLIRCIROpsIncGen
8+
69
LINK_LIBS PUBLIC
710
MLIRIR
811
)

0 commit comments

Comments
 (0)