Skip to content

[CMake] Make several libs depend on swift-syntax-generated-headers #11289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/ClangImporter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ add_swift_library(swiftClangImporter STATIC
ImportName.cpp
ImportType.cpp
SwiftLookupTable.cpp
DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES
swiftAST
swiftParse
Expand Down
4 changes: 3 additions & 1 deletion lib/Driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ set(swiftDriver_targetDefines)

add_swift_library(swiftDriver STATIC
${swiftDriver_sources}
DEPENDS SwiftOptions
DEPENDS
SwiftOptions
swift-syntax-generated-headers
LINK_LIBRARIES swiftAST swiftBasic swiftFrontend swiftOption)

# Generate the static-stdlib-args.lnk file used by -static-stdlib option
Expand Down
4 changes: 3 additions & 1 deletion lib/Frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ add_swift_library(swiftFrontend STATIC
PrintingDiagnosticConsumer.cpp
SerializedDiagnosticConsumer.cpp
${AppleHostVersionDetection}
DEPENDS SwiftOptions
DEPENDS
SwiftOptions
swift-syntax-generated-headers
LINK_LIBRARIES
swiftSIL
swiftMigrator
Expand Down
2 changes: 2 additions & 0 deletions lib/Migrator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ add_swift_library(swiftMigrator STATIC
RewriteBufferEditsReceiver.cpp
TupleSplatMigratorPass.cpp
TypeOfMigratorPass.cpp
DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES swiftSyntax swiftIDE)

add_dependencies(swiftMigrator
Expand Down
2 changes: 2 additions & 0 deletions lib/ParseSIL/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
add_swift_library(swiftParseSIL STATIC
ParseSIL.cpp
DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES
swiftParse
swiftSema
Expand Down
3 changes: 2 additions & 1 deletion lib/PrintAsObjC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
add_swift_library(swiftPrintAsObjC STATIC
PrintAsObjC.cpp

DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES
swiftIDE
swiftFrontend
Expand Down
2 changes: 2 additions & 0 deletions lib/SILGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ add_swift_library(swiftSILGen STATIC
SILGenStmt.cpp
SILGenThunk.cpp
SILGenType.cpp
DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES
swiftSIL
)
2 changes: 2 additions & 0 deletions tools/swift-syntax-test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
add_swift_host_tool(swift-syntax-test
swift-syntax-test.cpp
DEPENDS
swift-syntax-generated-headers
LINK_LIBRARIES
swiftAST
swiftDriver
Expand Down