Skip to content

Commit 2a86c00

Browse files
committed
[clang][CIR] Add missing dependency on MLIR headers
1 parent 0a78bd6 commit 2a86c00

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/lib/CIR/FrontendAction/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ add_clang_library(clangCIRFrontendAction
1111
DEPENDS
1212
MLIRCIROpsIncGen
1313
MLIRCIROpInterfacesIncGen
14+
# Add mlir-generic-headers dependency as the header CIRGenAction.h needs to
15+
# include BuiltinOps.h
16+
mlir-generic-headers
1417

1518
LINK_LIBS
1619
clangAST

clang/lib/FrontendTool/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ set(link_libs
1515
set(deps)
1616

1717
if(CLANG_ENABLE_CIR)
18+
# Add mlir-generic-headers dependency as the header CIRGenAction.h needs to
19+
# include BuiltinOps.h
20+
list(APPEND deps
21+
mlir-generic-headers
22+
)
1823
list(APPEND link_libs
1924
clangCIRFrontendAction
2025
MLIRIR

0 commit comments

Comments
 (0)