Skip to content

Commit 62afb0f

Browse files
committed
Add sources for swift-stdlib-tool.
1 parent a8e4e72 commit 62afb0f

File tree

3 files changed

+1266
-0
lines changed

3 files changed

+1266
-0
lines changed

tools/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ if(SWIFT_BUILD_SOURCEKIT)
1717
add_swift_tool_subdirectory(SourceKit)
1818
endif()
1919

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+
2026
is_sdk_requested("${SWIFT_HOST_VARIANT_SDK}" SWIFT_HOST_SDK_REQUESTED)
2127
if(SWIFT_BUILD_STDLIB AND SWIFT_HOST_SDK_REQUESTED)
2228
add_swift_tool_subdirectory(swift-reflection-dump)
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+

0 commit comments

Comments
 (0)