Skip to content

Swift REPL doesn't support swiftbuild build system #8846

@cmcgee1024

Description

@cmcgee1024

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

The Swift REPL entry point in SwiftRunCommand directly invokes the native build system, and uses the build plan, which is specific to that build system, to create the REPL arguments. Instead, it should be possible to configure the build system to Swift Build, and then the REPL arguments created independently from a build plan. The REPL arguments are mostly derived from the ModulesGraph, and BuildParameters so this should be feasible.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

Labels

bugswift buildChanges impacting `swift build`swift runChanges impacting `swift run` subcommand

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions