File tree 4 files changed +9
-3
lines changed
swift-compatibility-symbols
swift-def-to-strings-converter
swift-serialize-diagnostics 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ endmacro()
830
830
#
831
831
# Usage:
832
832
# add_swift_host_tool(name
833
- # [HAS_SWIFT_MODULES]
833
+ # [HAS_SWIFT_MODULES | DOES_NOT_USE_SWIFT ]
834
834
# [THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY]
835
835
#
836
836
# [BOOTSTRAPPING 0|1]
@@ -844,6 +844,9 @@ endmacro()
844
844
# HAS_SWIFT_MODULES
845
845
# Whether to link with SwiftCompilerSources library
846
846
#
847
+ # DOES_NOT_USE_SWIFT
848
+ # Do not link with swift runtime
849
+ #
847
850
# THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY
848
851
# Opt-out of LLVM IR optimizations when linking ThinLTO with ld64
849
852
#
@@ -859,7 +862,7 @@ endmacro()
859
862
# source1 ...
860
863
# Sources to add into this executable.
861
864
function (add_swift_host_tool executable)
862
- set (options HAS_SWIFT_MODULES THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
865
+ set (options HAS_SWIFT_MODULES DOES_NOT_USE_SWIFT THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
863
866
set (single_parameter_options SWIFT_COMPONENT BOOTSTRAPPING)
864
867
set (multiple_parameter_options LLVM_LINK_COMPONENTS)
865
868
@@ -915,7 +918,7 @@ function(add_swift_host_tool executable)
915
918
endif ()
916
919
917
920
# Once the new Swift parser is linked in, every host tool has Swift modules.
918
- if (SWIFT_SWIFT_PARSER)
921
+ if (SWIFT_SWIFT_PARSER AND NOT ASHT_DOES_NOT_USE_SWIFT )
919
922
set (ASHT_HAS_SWIFT_MODULES ON )
920
923
endif ()
921
924
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