File tree Expand file tree Collapse file tree 16 files changed +94
-73
lines changed Expand file tree Collapse file tree 16 files changed +94
-73
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ add_swift_host_tool(swift
4
4
autolink_extract_main.cpp
5
5
modulewrap_main.cpp
6
6
swift_format_main.cpp
7
- LINK_LIBRARIES
8
- swiftDriver
9
- swiftFrontendTool
10
7
SWIFT_COMPONENT compiler
11
8
)
12
-
9
+ target_link_libraries (swift
10
+ PRIVATE
11
+ swiftDriver
12
+ swiftFrontendTool )
13
13
if (HAVE_UNICODE_LIBEDIT )
14
14
target_link_libraries (swift PRIVATE edit )
15
15
endif ()
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (lldb-moduleimport-test
2
2
lldb-moduleimport-test.cpp
3
- LINK_LIBRARIES
4
- swiftASTSectionImporter swiftFrontend swiftClangImporter
5
3
SWIFT_COMPONENT tools
6
4
)
5
+ target_link_libraries (lldb-moduleimport-test
6
+ PRIVATE
7
+ swiftASTSectionImporter
8
+ swiftClangImporter
9
+ swiftFrontend )
7
10
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (sil-func-extractor
2
2
SILFunctionExtractor.cpp
3
- LINK_LIBRARIES
4
- swiftFrontend
5
- swiftSILGen
6
- swiftSILOptimizer
7
- swiftSerialization
8
- swiftClangImporter
9
3
SWIFT_COMPONENT tools
10
4
)
5
+ target_link_libraries (sil-func-extractor
6
+ PRIVATE
7
+ swiftClangImporter
8
+ swiftFrontend
9
+ swiftSerialization
10
+ swiftSILGen
11
+ swiftSILOptimizer )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (sil-llvm-gen
2
2
SILLLVMGen.cpp
3
- LINK_LIBRARIES
4
- swiftFrontend
5
- swiftIRGen
6
- swiftSILGen
7
- swiftSILOptimizer
8
- # Clang libraries included to appease the linker on linux.
9
- clangBasic
10
- clangCodeGen
11
3
SWIFT_COMPONENT tools
12
4
)
5
+ target_link_libraries (sil-llvm-gen
6
+ PRIVATE
7
+ swiftFrontend
8
+ swiftIRGen
9
+ swiftSILGen
10
+ swiftSILOptimizer
11
+ # Clang libraries included to appease the linker on linux.
12
+ clangBasic
13
+ clangCodeGen )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (sil-nm
2
2
SILNM.cpp
3
- LINK_LIBRARIES
4
- swiftFrontend
5
- swiftSILGen
6
- swiftSILOptimizer
7
- swiftSerialization
8
- swiftClangImporter
9
3
SWIFT_COMPONENT tools
10
4
)
5
+ target_link_libraries (sil-nm
6
+ PRIVATE
7
+ swiftClangImporter
8
+ swiftFrontend
9
+ swiftSerialization
10
+ swiftSILGen
11
+ swiftSILOptimizer )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (sil-opt
2
2
SILOpt.cpp
3
- LINK_LIBRARIES
4
- swiftFrontend
5
- swiftIRGen
6
- swiftSILGen
7
- swiftSILOptimizer
8
- # Clang libraries included to appease the linker on linux.
9
- clangBasic
10
- clangCodeGen
11
3
SWIFT_COMPONENT tools
12
4
)
5
+ target_link_libraries (sil-opt
6
+ PRIVATE
7
+ swiftFrontend
8
+ swiftIRGen
9
+ swiftSILGen
10
+ swiftSILOptimizer
11
+ # Clang libraries included to appease the linker on linux.
12
+ clangBasic
13
+ clangCodeGen )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (sil-passpipeline-dumper
2
2
SILPassPipelineDumper.cpp
3
- LINK_LIBRARIES
4
- swiftFrontend
5
- swiftSILGen
6
- swiftSILOptimizer
7
- swiftSerialization
8
- swiftClangImporter
9
- # FIXME: Circular dependencies require re-listing these libraries.
10
- swiftSema
11
- swiftAST
12
3
SWIFT_COMPONENT tools
13
4
)
5
+ target_link_libraries (sil-passpipeline-dumper
6
+ PRIVATE
7
+ swiftClangImporter
8
+ swiftFrontend
9
+ swiftSerialization
10
+ swiftSILGen
11
+ swiftSILOptimizer
12
+ # FIXME: Circular dependencies require re-listing these libraries.
13
+ swiftAST
14
+ swiftSema )
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ add_swift_host_tool(swift-api-digester
2
2
swift-api-digester.cpp
3
3
ModuleAnalyzerNodes.cpp
4
4
ModuleDiagsConsumer.cpp
5
- LINK_LIBRARIES swiftFrontend swiftIDE
6
5
SWIFT_COMPONENT tools
7
6
)
7
+ target_link_libraries (swift-api-digester
8
+ PRIVATE
9
+ swiftFrontend
10
+ swiftIDE )
Original file line number Diff line number Diff line change 1
1
add_swift_fuzzer_host_tool (swift-demangle-fuzzer
2
2
swift-demangle-fuzzer.cpp
3
- LINK_LIBRARIES swiftDemangling
4
3
LLVM_COMPONENT_DEPENDS support
5
4
SWIFT_COMPONENT compiler
6
5
)
6
+ target_link_libraries (swift-demangle-fuzzer
7
+ PRIVATE
8
+ swiftDemangling )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-demangle-yamldump
2
2
swift-demangle-yamldump.cpp
3
- LINK_LIBRARIES swiftDemangling
4
3
LLVM_COMPONENT_DEPENDS support
5
4
SWIFT_COMPONENT tools
6
5
)
6
+ target_link_libraries (swift-demangle-yamldump
7
+ PRIVATE
8
+ swiftDemangling )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-demangle
2
2
swift-demangle.cpp
3
- LINK_LIBRARIES swiftDemangling
4
3
LLVM_COMPONENT_DEPENDS support
5
4
SWIFT_COMPONENT compiler
6
5
)
6
+ target_link_libraries (swift-demangle
7
+ PRIVATE
8
+ swiftDemangling )
Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ add_swift_host_tool(swift-ide-test
2
2
swift-ide-test.cpp
3
3
ModuleAPIDiff.cpp
4
4
XMLValidator.cpp
5
- LINK_LIBRARIES
6
- swiftDriver
7
- swiftFrontend
8
- swiftIDE
9
5
SWIFT_COMPONENT tools
10
6
)
7
+ target_link_libraries (swift-ide-test
8
+ PRIVATE
9
+ swiftDriver
10
+ swiftFrontend
11
+ swiftIDE )
11
12
12
13
# If libxml2 is available, make it available for swift-ide-test.
13
14
if (SWIFT_HAVE_LIBXML )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-llvm-opt
2
2
LLVMOpt.cpp
3
- LINK_LIBRARIES
4
- swiftIRGen
5
-
6
- # Swift libraries included to appease the linker on linux.
7
- swiftSema
8
- swiftAST
9
-
10
- # Clang libraries included to appease the linker on linux.
11
- clangBasic
12
- clangCodeGen
13
-
14
3
SWIFT_COMPONENT tools
15
4
)
5
+ target_link_libraries (swift-llvm-opt
6
+ PRIVATE
7
+ swiftIRGen
8
+ # Swift libraries included to appease the linker on linux.
9
+ swiftSema
10
+ swiftAST
11
+ # Clang libraries included to appease the linker on linux.
12
+ clangBasic
13
+ clangCodeGen )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-refactor
2
2
swift-refactor.cpp
3
- LINK_LIBRARIES swiftDriver swiftFrontend swiftIDE
4
3
SWIFT_COMPONENT tools
5
4
)
5
+ target_link_libraries (swift-refactor
6
+ PRIVATE
7
+ swiftDriver
8
+ swiftFrontend
9
+ swiftIDE )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-remoteast-test
2
2
swift-remoteast-test.cpp
3
- LINK_LIBRARIES
4
- swiftFrontendTool
5
- swiftRemoteAST
6
3
SWIFT_COMPONENT tools
7
4
)
8
-
5
+ target_link_libraries (swift-remoteast-test
6
+ PRIVATE
7
+ swiftFrontendTool
8
+ swiftRemoteAST )
9
9
set_target_properties (swift-remoteast-test PROPERTIES ENABLE_EXPORTS 1 )
10
10
if (HAVE_UNICODE_LIBEDIT )
11
11
target_link_libraries (swift-remoteast-test PRIVATE edit )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-syntax-test
2
2
swift-syntax-test.cpp
3
- LINK_LIBRARIES
4
- swiftAST
5
- swiftDriver
6
- swiftFrontend
7
- swiftSema
8
- swiftSyntax
9
3
LLVM_COMPONENT_DEPENDS
10
4
Support
11
5
SWIFT_COMPONENT tools
12
6
)
7
+ target_link_libraries (swift-syntax-test
8
+ PRIVATE
9
+ swiftAST
10
+ swiftDriver
11
+ swiftFrontend
12
+ swiftSema
13
+ swiftSyntax )
You can’t perform that action at this time.
0 commit comments