Skip to content

Commit 6251ff7

Browse files
mikeashairspeedswift
authored andcommitted
[Tools] Get swiftdt actually building again.
rdar://problem/55481578
1 parent 7bc6058 commit 6251ff7

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ endfunction()
22402240
#
22412241
# [ARCHITECTURE architecture]
22422242
# Architecture to build for.
2243-
function(_add_swift_target_executable_single name)
2243+
function(_add_swift_target_executable_single module_name name)
22442244
set(options)
22452245
set(single_parameter_options
22462246
ARCHITECTURE
@@ -2298,7 +2298,7 @@ function(_add_swift_target_executable_single name)
22982298
SWIFTEXE_SINGLE_SOURCES SWIFTEXE_SINGLE_EXTERNAL_SOURCES ${name}
22992299
DEPENDS
23002300
${SWIFTEXE_SINGLE_DEPENDS}
2301-
MODULE_NAME ${name}
2301+
MODULE_NAME ${module_name}
23022302
SDK ${SWIFTEXE_SINGLE_SDK}
23032303
ARCHITECTURE ${SWIFTEXE_SINGLE_ARCHITECTURE}
23042304
COMPILE_FLAGS ${SWIFTEXE_SINGLE_COMPILE_FLAGS}
@@ -2405,6 +2405,7 @@ function(add_swift_target_executable name)
24052405
"-${SWIFT_SDK_${sdk}_LIB_SUBDIR}"
24062406
SWIFTEXE_TARGET_DEPENDS_with_suffix)
24072407
_add_swift_target_executable_single(
2408+
${name}
24082409
${VARIANT_NAME}
24092410
${SWIFTEXE_TARGET_SOURCES}
24102411
DEPENDS ${SWIFTEXE_TARGET_DEPENDS_with_suffix}

tools/swiftdt/CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
add_swift_host_tool(swiftdt
1+
add_swift_target_executable(swiftdt
22
Inspector.swift
3+
InterpolationExtensions.swift
34
main.swift
5+
RemoteMirrorExtensions.swift
46
stdio.swift
57
symbolication.swift
6-
SWIFT_COMPONENT tools
7-
COMPILE_FLAGS -I${SWIFT_SOURCE_DIR}/include/swift/SwiftRemoteMirror
8-
)
98

10-
add_dependencies(swiftdt swift-stdlib)
11-
target_link_libraries(swiftdt
12-
swiftRemoteMirror.dylib)
9+
COMPILE_FLAGS
10+
-I${SWIFT_SOURCE_DIR}/include/swift/SwiftRemoteMirror
11+
LINK_LIBRARIES
12+
swiftRemoteMirror
13+
)

tools/swiftdt/main.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Foundation
21
import SwiftRemoteMirror
32

43

0 commit comments

Comments
 (0)