Merge pull request #8258 from tkremenek/swift-stdlib-tool

Add sources for swift-stdlib-tool.
This commit is contained in:
Ted Kremenek
2017-03-21 19:23:10 -07:00
committed by GitHub
3 changed files with 1266 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ if(SWIFT_BUILD_SOURCEKIT)
add_swift_tool_subdirectory(SourceKit)
endif()
if(SWIFT_HOST_VARIANT STREQUAL "macosx")
# Only build Darwin-specific tools when deploying to OS X.
add_swift_tool_subdirectory(swift-stdlib-tool)
endif()
is_sdk_requested("${SWIFT_HOST_VARIANT_SDK}" SWIFT_HOST_SDK_REQUESTED)
if(SWIFT_BUILD_STDLIB AND SWIFT_HOST_SDK_REQUESTED)
add_swift_tool_subdirectory(swift-reflection-dump)

View File

@@ -0,0 +1,10 @@
add_swift_executable(swift-stdlib-tool
swift-stdlib-tool.mm)
find_library(FOUNDATION NAMES Foundation)
target_link_libraries(swift-stdlib-tool ${FOUNDATION})
swift_install_in_component(compiler
TARGETS swift-stdlib-tool
RUNTIME DESTINATION "bin")

File diff suppressed because it is too large Load Diff