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()
833833#
834834# Usage:
835835# add_swift_host_tool(name
836- # [HAS_SWIFT_MODULES]
836+ # [HAS_SWIFT_MODULES | DOES_NOT_USE_SWIFT ]
837837# [THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY]
838838#
839839# [BOOTSTRAPPING 0|1]
@@ -847,6 +847,9 @@ endmacro()
847847# HAS_SWIFT_MODULES
848848# Whether to link with SwiftCompilerSources library
849849#
850+ # DOES_NOT_USE_SWIFT
851+ # Do not link with swift runtime
852+ #
850853# THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY
851854# Opt-out of LLVM IR optimizations when linking ThinLTO with ld64
852855#
@@ -862,7 +865,7 @@ endmacro()
862865# source1 ...
863866# Sources to add into this executable.
864867function (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)
866869 set (single_parameter_options SWIFT_COMPONENT BOOTSTRAPPING)
867870 set (multiple_parameter_options LLVM_LINK_COMPONENTS)
868871
@@ -918,7 +921,7 @@ function(add_swift_host_tool executable)
918921 endif ()
919922
920923 # 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 )
922925 set (ASHT_HAS_SWIFT_MODULES ON )
923926 endif ()
924927
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ add_swift_host_tool(swift-compatibility-symbols
22 swift-compatibility-symbols.cpp
33 LLVM_LINK_COMPONENTS support
44 SWIFT_COMPONENT tools
5+ DOES_NOT_USE_SWIFT
56)
67
78set (syms_file "${CMAKE_BINARY_DIR} /share/swift/compatibility-symbols" )
Original file line number Diff line number Diff line change 11add_swift_host_tool(swift-def-to-strings -converter
22 swift-def-to-strings -converter.cpp
33 SWIFT_COMPONENT tools
4+ DOES_NOT_USE_SWIFT
45)
56
67target_link_libraries (swift-def-to-strings -converter PRIVATE
Original file line number Diff line number Diff line change 11add_swift_host_tool(swift-serialize-diagnostics
22 swift-serialize-diagnostics.cpp
33 SWIFT_COMPONENT tools
4+ DOES_NOT_USE_SWIFT
45)
56target_link_libraries (swift-serialize-diagnostics PRIVATE
67 swiftLocalization)
You can’t perform that action at this time.
0 commit comments