File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
swift-compatibility-symbols
swift-def-to-strings-converter
swift-serialize-diagnostics Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -833,7 +833,7 @@ endmacro()
833
833
#
834
834
# Usage:
835
835
# add_swift_host_tool(name
836
- # [HAS_SWIFT_MODULES]
836
+ # [HAS_SWIFT_MODULES | DOES_NOT_USE_SWIFT ]
837
837
# [THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY]
838
838
#
839
839
# [BOOTSTRAPPING 0|1]
@@ -847,6 +847,9 @@ endmacro()
847
847
# HAS_SWIFT_MODULES
848
848
# Whether to link with SwiftCompilerSources library
849
849
#
850
+ # DOES_NOT_USE_SWIFT
851
+ # Do not link with swift runtime
852
+ #
850
853
# THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY
851
854
# Opt-out of LLVM IR optimizations when linking ThinLTO with ld64
852
855
#
@@ -862,7 +865,7 @@ endmacro()
862
865
# source1 ...
863
866
# Sources to add into this executable.
864
867
function(add_swift_host_tool executable)
865
- set(options HAS_SWIFT_MODULES THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
868
+ set(options HAS_SWIFT_MODULES DOES_NOT_USE_SWIFT THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
866
869
set(single_parameter_options SWIFT_COMPONENT BOOTSTRAPPING)
867
870
set(multiple_parameter_options LLVM_LINK_COMPONENTS)
868
871
@@ -918,7 +921,7 @@ function(add_swift_host_tool executable)
918
921
endif()
919
922
920
923
# Once the new Swift parser is linked in, every host tool has Swift modules.
921
- if (SWIFT_SWIFT_PARSER)
924
+ if (SWIFT_SWIFT_PARSER AND NOT ASHT_DOES_NOT_USE_SWIFT )
922
925
set(ASHT_HAS_SWIFT_MODULES ON)
923
926
endif()
924
927
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ add_swift_host_tool(swift-compatibility-symbols
2
2
swift-compatibility-symbols.cpp
3
3
LLVM_LINK_COMPONENTS support
4
4
SWIFT_COMPONENT tools
5
+ DOES_NOT_USE_SWIFT
5
6
)
6
7
7
8
set (syms_file "${CMAKE_BINARY_DIR} /share/swift/compatibility-symbols" )
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-def-to-strings-converter
2
2
swift-def-to-strings-converter.cpp
3
3
SWIFT_COMPONENT tools
4
+ DOES_NOT_USE_SWIFT
4
5
)
5
6
6
7
target_link_libraries (swift-def-to-strings-converter PRIVATE
Original file line number Diff line number Diff line change 1
1
add_swift_host_tool (swift-serialize-diagnostics
2
2
swift-serialize-diagnostics.cpp
3
3
SWIFT_COMPONENT tools
4
+ DOES_NOT_USE_SWIFT
4
5
)
5
6
target_link_libraries (swift-serialize-diagnostics PRIVATE
6
7
swiftLocalization )
You can’t perform that action at this time.
0 commit comments