File tree 3 files changed +1266
-0
lines changed
3 files changed +1266
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ if(SWIFT_BUILD_SOURCEKIT)
17
17
add_swift_tool_subdirectory(SourceKit)
18
18
endif ()
19
19
20
+ if (SWIFT_HOST_VARIANT STREQUAL "macosx" )
21
+ # Only build Darwin-specific tools when deploying to OS X.
22
+ add_swift_tool_subdirectory(swift-stdlib-tool)
23
+ endif ()
24
+
25
+
20
26
is_sdk_requested("${SWIFT_HOST_VARIANT_SDK} " SWIFT_HOST_SDK_REQUESTED)
21
27
if (SWIFT_BUILD_STDLIB AND SWIFT_HOST_SDK_REQUESTED)
22
28
add_swift_tool_subdirectory(swift-reflection-dump)
Original file line number Diff line number Diff line change
1
+ add_swift_executable(swift-stdlib-tool
2
+ swift-stdlib-tool.mm)
3
+
4
+ find_library (FOUNDATION NAMES Foundation)
5
+ target_link_libraries (swift-stdlib-tool ${FOUNDATION} )
6
+
7
+ swift_install_in_component(compiler
8
+ TARGETS swift-stdlib-tool
9
+ RUNTIME DESTINATION "bin" )
10
+
You can’t perform that action at this time.
0 commit comments