File tree 27 files changed +127
-123
lines changed
tools/libSwiftSyntaxParser
27 files changed +127
-123
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,6 @@ add_swift_host_library(swiftAST STATIC
64
64
TypeWalker.cpp
65
65
USRGeneration.cpp
66
66
67
- LINK_LIBRARIES
68
- swiftMarkup
69
- swiftBasic
70
- swiftSyntax
71
-
72
67
INTERFACE_LINK_LIBRARIES
73
68
# Clang dependencies.
74
69
# FIXME: Clang should really export these in some reasonable manner.
@@ -98,6 +93,10 @@ add_swift_host_library(swiftAST STATIC
98
93
99
94
${EXTRA_AST_FLAGS}
100
95
)
96
+ target_link_libraries (swiftAST PRIVATE
97
+ swiftBasic
98
+ swiftMarkup
99
+ swiftSyntax)
101
100
102
101
# intrinsics_gen is the LLVM tablegen target that generates the include files
103
102
# where intrinsics and attributes are declared. swiftAST depends on these
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftASTSectionImporter STATIC
2
2
ASTSectionImporter.cpp
3
- LINK_LIBRARIES swiftBasic
4
3
LLVM_COMPONENT_DEPENDS core)
4
+ target_link_libraries (swiftASTSectionImporter PRIVATE
5
+ swiftBasic)
5
6
Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ add_swift_host_library(swiftBasic STATIC
105
105
UnicodeExtendedGraphemeClusters.cpp.gyb
106
106
107
107
C_COMPILE_FLAGS ${UUID_INCLUDE}
108
- LINK_LIBRARIES
109
- swiftDemangling
110
- ${UUID_LIBRARIES}
111
108
LLVM_COMPONENT_DEPENDS support)
109
+ target_link_libraries (swiftBasic PRIVATE
110
+ swiftDemangling
111
+ ${UUID_LIBRARIES} )
112
112
113
113
message (STATUS "Swift version: ${SWIFT_VERSION} " )
114
114
message (STATUS "Swift vendor: ${SWIFT_VENDOR} " )
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ add_swift_host_library(swiftClangImporter STATIC
16
16
ImportName.cpp
17
17
ImportType.cpp
18
18
SwiftLookupTable.cpp
19
- LINK_LIBRARIES
20
- swiftAST
21
- swiftParse
22
19
)
20
+ target_link_libraries (swiftClangImporter PRIVATE
21
+ swiftAST
22
+ swiftParse)
23
23
24
24
# This property is only set by calls to clang_tablegen. It will not be set on
25
25
# standalone builds, so it can always be safely passed.
Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ set(swiftDriver_targetDefines)
19
19
20
20
add_swift_host_library(swiftDriver STATIC
21
21
${swiftDriver_sources}
22
- DEPENDS SwiftOptions
23
- LINK_LIBRARIES swiftAST swiftBasic swiftOption)
22
+ DEPENDS SwiftOptions)
23
+ target_link_libraries (swiftDriver PRIVATE
24
+ swiftAST
25
+ swiftBasic
26
+ swiftOption)
24
27
25
28
# Generate the static-stdlib-args.lnk file used by -static-stdlib option
26
29
# for 'GenericUnix' (eg linux)
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ add_swift_host_library(swiftFrontend STATIC
11
11
PrintingDiagnosticConsumer.cpp
12
12
SerializedDiagnosticConsumer.cpp
13
13
DEPENDS
14
- SwiftOptions
15
- LINK_LIBRARIES
16
- swiftSIL
17
- swiftMigrator
18
- swiftOption
19
- swiftParseSIL
20
- swiftSILGen
21
- swiftSILOptimizer
22
- swiftSema
23
- swiftSerialization)
14
+ SwiftOptions)
15
+ target_link_libraries (swiftFrontend PRIVATE
16
+ swiftSIL
17
+ swiftMigrator
18
+ swiftOption
19
+ swiftParseSIL
20
+ swiftSILGen
21
+ swiftSILOptimizer
22
+ swiftSema
23
+ swiftSerialization)
24
24
Original file line number Diff line number Diff line change @@ -5,19 +5,23 @@ add_swift_host_library(swiftFrontendTool STATIC
5
5
TBD.cpp
6
6
DEPENDS
7
7
swift-syntax-generated -headers SwiftOptions
8
- LINK_LIBRARIES
9
- swiftIndex
10
- swiftIDE
11
- swiftTBDGen swiftIRGen swiftSIL swiftSILGen swiftSILOptimizer
12
- swiftDemangling
13
- swiftImmediate
14
- swiftSerialization
15
- swiftPrintAsObjC
16
- swiftFrontend
17
- swiftClangImporter
18
- swiftDWARFImporter
19
- swiftOption
20
8
INTERFACE_LINK_LIBRARIES
21
9
clangAPINotes
22
10
clangBasic
23
11
)
12
+ target_link_libraries (swiftFrontendTool PRIVATE
13
+ swiftClangImporter
14
+ swiftDemangling
15
+ swiftDWARFImporter
16
+ swiftFrontend
17
+ swiftIDE
18
+ swiftImmediate
19
+ swiftIndex
20
+ swiftIRGen
21
+ swiftOption
22
+ swiftPrintAsObjC
23
+ swiftSerialization
24
+ swiftSIL
25
+ swiftSILGen
26
+ swiftSILOptimizer
27
+ swiftTBDGen)
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ add_swift_host_library(swiftIDE STATIC
15
15
IDETypeChecking.cpp
16
16
APIDigesterData.cpp
17
17
SourceEntityWalker.cpp
18
- TypeContextInfo.cpp
19
- LINK_LIBRARIES
20
- swiftAST
21
- swiftFrontend
22
- swiftClangImporter
23
- swiftDWARFImporter
24
- swiftParse
25
- swiftSema
26
- swiftIndex )
18
+ TypeContextInfo.cpp)
19
+ target_link_libraries (swiftIDE PRIVATE
20
+ swiftAST
21
+ swiftClangImporter
22
+ swiftDWARFImporter
23
+ swiftFrontend
24
+ swiftIndex
25
+ swiftParse
26
+ swiftSema )
27
27
Original file line number Diff line number Diff line change @@ -50,12 +50,6 @@ add_swift_host_library(swiftIRGen STATIC
50
50
SwiftTargetInfo.cpp
51
51
TypeLayoutDumper.cpp
52
52
TypeLayoutVerifier.cpp
53
- LINK_LIBRARIES
54
- swiftAST
55
- swiftLLVMPasses
56
- swiftSIL
57
- swiftSILGen
58
- swiftSILOptimizer
59
53
60
54
INTERFACE_LINK_LIBRARIES
61
55
# Clang dependencies.
@@ -67,3 +61,9 @@ add_swift_host_library(swiftIRGen STATIC
67
61
target
68
62
transformutils
69
63
)
64
+ target_link_libraries (swiftIRGen PRIVATE
65
+ swiftAST
66
+ swiftLLVMPasses
67
+ swiftSIL
68
+ swiftSILGen
69
+ swiftSILOptimizer)
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftImmediate STATIC
2
2
Immediate.cpp
3
3
REPL.cpp
4
- LINK_LIBRARIES
5
- swiftIDE
6
- swiftFrontend
7
- swiftSILGen
8
- swiftSILOptimizer
9
- swiftIRGen
10
4
LLVM_COMPONENT_DEPENDS
11
5
executionengine
12
6
linker
13
7
mcjit
14
8
transformutils)
9
+ target_link_libraries (swiftImmediate PRIVATE
10
+ swiftFrontend
11
+ swiftIDE
12
+ swiftIRGen
13
+ swiftSILGen
14
+ swiftSILOptimizer)
15
15
16
16
if (HAVE_UNICODE_LIBEDIT)
17
17
target_link_libraries (swiftImmediate PRIVATE edit)
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ add_swift_host_library(swiftIndex STATIC
2
2
Index.cpp
3
3
IndexDataConsumer.cpp
4
4
IndexRecord.cpp
5
- IndexSymbol.cpp
6
- LINK_LIBRARIES
7
- swiftAST)
5
+ IndexSymbol.cpp)
6
+ target_link_libraries (swiftIndex PRIVATE
7
+ swiftAST)
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftMarkup STATIC
2
2
AST.cpp
3
3
LineList.cpp
4
- Markup.cpp
5
-
6
- LINK_LIBRARIES
7
- libcmark_static)
4
+ Markup.cpp)
5
+ target_link_libraries (swiftMarkup PRIVATE
6
+ libcmark_static)
8
7
target_compile_definitions (swiftMarkup
9
8
PRIVATE
10
9
CMARK_STATIC_DEFINE)
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ add_swift_host_library(swiftMigrator STATIC
54
54
Migrator.cpp
55
55
MigrationState.cpp
56
56
OptionalTryMigratorPass.cpp
57
- RewriteBufferEditsReceiver.cpp
58
- LINK_LIBRARIES swiftSyntax swiftIDE)
57
+ RewriteBufferEditsReceiver.cpp)
58
+ target_link_libraries (swiftMigrator PRIVATE
59
+ swiftIDE
60
+ swiftSyntax)
59
61
60
62
add_dependencies (swiftMigrator
61
63
"symlink_migrator_data" )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ add_swift_host_library(swiftOption STATIC
2
2
Options .cpp
3
3
SanitizerOptions.cpp
4
4
DEPENDS SwiftOptions
5
- LINK_LIBRARIES swiftBasic
6
5
FILE_DEPENDS SwiftOptions)
6
+ target_link_libraries (swiftOption PRIVATE
7
+ swiftBasic)
7
8
Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ add_swift_host_library(swiftParse STATIC
24
24
PersistentParserState.cpp
25
25
Scope.cpp
26
26
SyntaxParsingCache.cpp
27
- SyntaxParsingContext.cpp
28
- LINK_LIBRARIES
29
- swiftAST
30
- swiftSyntax
31
- )
27
+ SyntaxParsingContext.cpp)
28
+ target_link_libraries (swiftParse PRIVATE
29
+ swiftAST
30
+ swiftSyntax)
32
31
33
32
add_dependencies (swiftParse swift-parse-syntax-generated -headers)
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftParseSIL STATIC
2
- ParseSIL.cpp
3
- LINK_LIBRARIES
4
- swiftSyntaxParse
5
- swiftSema
6
- swiftSIL
7
- )
2
+ ParseSIL.cpp)
3
+ target_link_libraries (swiftParseSIL PRIVATE
4
+ swiftSema
5
+ swiftSIL
6
+ swiftSyntaxParse)
8
7
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftPrintAsObjC STATIC
2
- PrintAsObjC.cpp
3
- LINK_LIBRARIES
4
- swiftIDE
5
- swiftFrontend
6
- swiftClangImporter
7
- swiftAST )
2
+ PrintAsObjC.cpp)
3
+ target_link_libraries (swiftPrintAsObjC PRIVATE
4
+ swiftAST
5
+ swiftClangImporter
6
+ swiftFrontend
7
+ swiftIDE )
8
8
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ endif()
14
14
add_swift_host_library(swiftRemoteAST STATIC
15
15
RemoteAST.cpp
16
16
InProcessMemoryReader.cpp
17
- ${REMOTE_LIB_HEADERS}
18
- LINK_LIBRARIES
19
- swiftSema swiftIRGen)
17
+ ${REMOTE_LIB_HEADERS} )
18
+ target_link_libraries (swiftRemoteAST PRIVATE
19
+ swiftIRGen
20
+ swiftSema)
Original file line number Diff line number Diff line change @@ -46,11 +46,10 @@ add_swift_host_library(swiftSIL STATIC
46
46
SILWitnessTable.cpp
47
47
TypeLowering.cpp
48
48
ValueOwnership.cpp
49
- ValueUtils.cpp
50
- LINK_LIBRARIES
51
- swiftSerialization
52
- swiftSema
53
- )
49
+ ValueUtils.cpp)
50
+ target_link_libraries (swiftSIL PRIVATE
51
+ swiftSema
52
+ swiftSerialization)
54
53
55
54
# intrinsics_gen is the LLVM tablegen target that generates the include files
56
55
# where intrinsics and attributes are declared. swiftSIL depends on these
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ add_swift_host_library(swiftSILGen STATIC
29
29
SILGenProlog.cpp
30
30
SILGenStmt.cpp
31
31
SILGenThunk.cpp
32
- SILGenType.cpp
33
- LINK_LIBRARIES
34
- swiftSIL
35
- )
32
+ SILGenType.cpp)
33
+ target_link_libraries (swiftSILGen PRIVATE
34
+ swiftSIL)
Original file line number Diff line number Diff line change @@ -34,5 +34,6 @@ add_subdirectory(UtilityPasses)
34
34
add_subdirectory (Utils)
35
35
36
36
add_swift_host_library(swiftSILOptimizer STATIC
37
- ${SILOPTIMIZER_SOURCES}
38
- LINK_LIBRARIES swiftSIL)
37
+ ${SILOPTIMIZER_SOURCES} )
38
+ target_link_libraries (swiftSILOptimizer PRIVATE
39
+ swiftSIL)
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ add_swift_host_library(swiftSema STATIC
59
59
TypeCheckSwitchStmt.cpp
60
60
TypeCheckType.cpp
61
61
TypeChecker.cpp
62
- LINK_LIBRARIES
63
- swiftParse
64
- swiftAST
65
- swiftSerialization
66
- ${EXTRA_TYPECHECKER_FLAGS}
67
- )
62
+
63
+ ${EXTRA_TYPECHECKER_FLAGS} )
64
+ target_link_libraries (swiftSema PRIVATE
65
+ swiftAST
66
+ swiftParse
67
+ swiftSerialization )
68
68
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ add_swift_host_library(swiftSerialization STATIC
6
6
SerializedModuleLoader.cpp
7
7
SerializedSILLoader.cpp
8
8
SerializeDoc.cpp
9
- SerializeSIL.cpp
10
- LINK_LIBRARIES
11
- swiftClangImporter)
9
+ SerializeSIL.cpp)
10
+ target_link_libraries (swiftSerialization PRIVATE
11
+ swiftClangImporter)
12
12
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ add_swift_host_library(swiftDemangle
2
2
SHARED
3
3
SwiftDemangle.cpp
4
4
MangleHack.cpp
5
- LINK_LIBRARIES
6
- swiftDemangling
7
5
C_COMPILE_FLAGS
8
6
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1)
7
+ target_link_libraries (swiftDemangle PRIVATE
8
+ swiftDemangling)
9
9
10
10
swift_install_in_component(compiler
11
11
TARGETS swiftDemangle
Original file line number Diff line number Diff line change 1
1
add_swift_host_library(swiftSyntaxParse STATIC
2
2
RawSyntaxTokenCache.cpp
3
- SyntaxTreeCreator.cpp
4
- LINK_LIBRARIES
5
- swiftParse
6
- swiftSyntax
7
- )
3
+ SyntaxTreeCreator.cpp)
4
+ target_link_libraries (swiftSyntaxParse PRIVATE
5
+ swiftParse
6
+ swiftSyntax)
You can’t perform that action at this time.
0 commit comments