Skip to content

Commit 8beac0d

Browse files
committed
[rebase] lib/Frontend dependency fix
FrontendActions.cpp include various mlir/fir headers that themselves includes auto generated header files from .td. It is therefore important that FIR and MLIR headers are generated before starting to build lib/Frontend (otherwise, builds on beefy machines fail when not finding the auto generated headers). A previous fix done in: 9979896 Did not add all dependencies and was not working anymore in out-of-tree builds because LinalgOdsGen is actually no exported in install builds.
1 parent 18a698a commit 8beac0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/lib/Frontend/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ add_flang_library(flangFrontend
1212

1313
DEPENDS
1414
clangBasic
15+
FIRBuilder
16+
FIRDialect
17+
FIRSupport
18+
${dialect_libs}
1519

1620
LINK_LIBS
1721
FortranParser

0 commit comments

Comments
 (0)