Skip to content

Commit 08ef4e3

Browse files
committed
[CMake] Add swift-syntax-generated-headers to the global dependencies
1 parent b8169f2 commit 08ef4e3

File tree

16 files changed

+5
-23
lines changed

16 files changed

+5
-23
lines changed

lib/AST/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ add_swift_library(swiftAST STATIC
5757
TypeRepr.cpp
5858
TypeWalker.cpp
5959
USRGeneration.cpp
60-
DEPENDS
61-
swift-syntax-generated-headers
6260

6361
LINK_LIBRARIES
6462
swiftMarkup

lib/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
# directory.
1111
list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen clang-tablegen-targets)
1212

13+
# Add generated libSyntax headers to global dependencies.
14+
list(APPEND LLVM_COMMON_DEPENDS swift-syntax-generated-headers)
15+
1316
add_subdirectory(AST)
1417
add_subdirectory(ASTSectionImporter)
1518
add_subdirectory(Basic)

lib/ClangImporter/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ add_swift_library(swiftClangImporter STATIC
1616
ImportName.cpp
1717
ImportType.cpp
1818
SwiftLookupTable.cpp
19-
DEPENDS swift-syntax-generated-headers
2019
LINK_LIBRARIES
2120
swiftAST
2221
swiftParse

lib/Driver/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set(swiftDriver_targetDefines)
1616

1717
add_swift_library(swiftDriver STATIC
1818
${swiftDriver_sources}
19-
DEPENDS swift-syntax-generated-headers SwiftOptions
19+
DEPENDS SwiftOptions
2020
LINK_LIBRARIES swiftAST swiftBasic swiftFrontend swiftOption)
2121

2222
# Generate the static-stdlib-args.lnk file used by -static-stdlib option

lib/Frontend/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ add_swift_library(swiftFrontend STATIC
77
SerializedDiagnosticConsumer.cpp
88
DEPENDS
99
SwiftOptions
10-
swift-syntax-generated-headers
1110
LINK_LIBRARIES
1211
swiftSIL
1312
swiftMigrator

lib/IDE/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ add_swift_library(swiftIDE STATIC
1313
IDETypeChecking.cpp
1414
APIDigesterData.cpp
1515
SourceEntityWalker.cpp
16-
DEPENDS
17-
swift-syntax-generated-headers
1816
LINK_LIBRARIES
1917
swiftFrontend
2018
swiftClangImporter

lib/Immediate/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
add_swift_library(swiftImmediate STATIC
22
Immediate.cpp
33
REPL.cpp
4-
DEPENDS swift-syntax-generated-headers
54
LINK_LIBRARIES
65
swiftIDE
76
swiftFrontend

lib/Migrator/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ add_swift_library(swiftMigrator STATIC
4444
RewriteBufferEditsReceiver.cpp
4545
TupleSplatMigratorPass.cpp
4646
TypeOfMigratorPass.cpp
47-
DEPENDS
48-
swift-syntax-generated-headers
4947
LINK_LIBRARIES swiftSyntax swiftIDE)
5048

5149
add_dependencies(swiftMigrator

lib/Parse/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ add_swift_library(swiftParse STATIC
1111
ParseType.cpp
1212
PersistentParserState.cpp
1313
Scope.cpp
14-
DEPENDS
15-
swift-syntax-generated-headers
1614
LINK_LIBRARIES
1715
swiftAST
1816
swiftSyntax

lib/ParseSIL/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
add_swift_library(swiftParseSIL STATIC
22
ParseSIL.cpp
3-
DEPENDS swift-syntax-generated-headers
43
LINK_LIBRARIES
54
swiftParse
65
swiftSema

lib/PrintAsObjC/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
add_swift_library(swiftPrintAsObjC STATIC
22
PrintAsObjC.cpp
3-
4-
DEPENDS swift-syntax-generated-headers
53
LINK_LIBRARIES
64
swiftIDE
75
swiftFrontend

lib/SILOptimizer/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ add_swift_library(swiftSILOptimizer STATIC
1919
${MANDATORY_SOURCES}
2020
${TRANSFORMS_SOURCES}
2121
${IPO_SOURCES}
22-
DEPENDS swift-syntax-generated-headers
2322
LINK_LIBRARIES swiftSIL)

lib/Sema/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ add_swift_library(swiftSema STATIC
5454
TypeCheckSwitchStmt.cpp
5555
TypeCheckType.cpp
5656
TypeChecker.cpp
57-
DEPENDS
58-
swift-syntax-generated-headers
5957
LINK_LIBRARIES
6058
swiftParse
6159
swiftAST

lib/Syntax/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ add_swift_library(swiftSyntax STATIC
1212
Syntax.cpp
1313
SyntaxData.cpp
1414
UnknownSyntax.cpp
15-
SyntaxParsingContext.cpp
16-
DEPENDS
17-
swift-syntax-generated-headers)
15+
SyntaxParsingContext.cpp)

tools/SourceKit/lib/Support/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ endif()
1515

1616
add_sourcekit_library(SourceKitSupport
1717
${SourceKitSupport_sources}
18-
DEPENDS swift-syntax-generated-headers
1918
LINK_LIBS ${SOURCEKIT_SUPPORT_DEPEND}
2019
)

tools/SourceKit/lib/SwiftLang/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ add_sourcekit_library(SourceKitSwiftLang
88
SwiftIndexing.cpp
99
SwiftLangSupport.cpp
1010
SwiftSourceDocInfo.cpp
11-
DEPENDS swift-syntax-generated-headers
1211
LINK_LIBS
1312
SourceKitCore swiftDriver swiftFrontend swiftClangImporter swiftIDE
1413
swiftAST swiftMarkup swiftParse swiftParseSIL swiftSIL swiftSILGen

0 commit comments

Comments
 (0)