-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Run Command: Add SwiftBuild repl support #8971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bkhouri
merged 2 commits into
swiftlang:main
from
bkhouri:t/main/gh8846_rdar153822861_support_swift_run_repl_with_swiftbuild
Jul 31, 2025
Merged
Run Command: Add SwiftBuild repl support #8971
bkhouri
merged 2 commits into
swiftlang:main
from
bkhouri:t/main/gh8846_rdar153822861_support_swift_run_repl_with_swiftbuild
Jul 31, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@swift-ci test |
@swift-ci test |
88cb4e2
to
3f9e6ca
Compare
@swift-ci test |
@swift-ci test windows |
owenv
reviewed
Jul 29, 2025
The `swift run --repl` was explicitely using the Native build system. This change modified the `swift run --repl` command to respect the `--build-system <arg>` command line option. The change introduces a new build output request `replArguments`. When provided, the build system is responsible for providing the arguments required for the REPL in the BuildResult. The Swift Run Command will inspect the build repsult for this property. If it's unavailable, the command provides an error indicating repl support is unavailable. A caveat, more work is required to get proper REPL integation with the Package. At the moment, the System Library paths are not provided by the SwiftBuild System when a repl session is requested via the `run` command. Relates to: swiftlang#8846 issue: rdar://153822861
3f9e6ca
to
f0d1b7f
Compare
@swift-ci test |
@swift-ci test windows |
owenv
approved these changes
Jul 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
swift run --repl
was explicitly using the Native build system. This change modified theswift run --repl
command to respect the--build-system <arg>
command line option. The change introduces a new build output requestreplArguments
. When provided, the build system is responsible for providing the arguments required for the REPL in theBuildResult.
The Swift Run Command will inspect the build result for this property. If it's unavailable, the command provides an error indicating repl support is unavailable.
A caveat, more work is required to get proper REPL integration with the Package. At the moment, the System Library paths are not provided by the SwiftBuild System when a repl session is requested via the
run
command.Relates to: #8846
issue: rdar://153822861
Depends on : #8942