Skip to content

Commit bfb49da

Browse files
committed
[AST] Link ASTGen
AST uses several 'swift_ASTGen_*' functions. It does depend on ASTGen, so there's cyclic references. Not ideal though.
1 parent a0d7068 commit bfb49da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,9 @@ target_link_libraries(swiftAST
171171
PUBLIC swiftBasic
172172
PRIVATE swiftMarkup)
173173

174+
if (SWIFT_BUILD_SWIFT_SYNTAX)
175+
target_link_libraries(swiftAST
176+
PRIVATE swiftASTGen)
177+
endif()
178+
174179
set_swift_llvm_is_available(swiftAST)

0 commit comments

Comments
 (0)