Skip to content

Commit 17640d6

Browse files
committed
build: install the executable targets
This is the first and last step towards enabling swift-driver on Windows. The current swift-driver test suite passes on Windows, and with the changes now merged, `swift build --use-integrated-swift-driver` works. This change will extract the tools so that we can package them up. This sets the stage for the last change needed in SPM and allows experimenting with packaging now.
1 parent 6b348db commit 17640d6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Sources/swift-build-sdk-interfaces/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ add_executable(swift-build-sdk-interfaces
1111
target_link_libraries(swift-build-sdk-interfaces PUBLIC
1212
SwiftDriver
1313
SwiftDriverExecution)
14+
15+
install(TARGETS swift-build-sdk-interfaces
16+
DESTINATION bin)

Sources/swift-driver/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ add_executable(swift-driver
1010
main.swift)
1111
target_link_libraries(swift-driver PUBLIC
1212
SwiftDriver
13-
SwiftDriverExecution)
13+
SwiftDriverExecution)
14+
15+
install(TARGETS swift-driver
16+
DESTINATION bin)

Sources/swift-help/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ add_executable(swift-help
1111
target_link_libraries(swift-help PUBLIC
1212
SwiftOptions
1313
ArgumentParser
14-
TSCBasic)
14+
TSCBasic)
15+
16+
install(TARGETS swift-help
17+
DESTINATION bin)

0 commit comments

Comments
 (0)