swift-run will use this to locate the path to the executable to launch.
(see https://github.com/swiftlang/swift-package-manager/pull/8331/files#r1990110132)
Suggested starting point: SWBBuildServiceSession could get an API like func generateRunnableInfo(for request: SWBBuildRequest, targetID: String, delegate: any SWBPlanningOperationDelegate) async throws -> SWBRunnableInfo which returns a struct containing path information for the specified target.
Or, this could be emitted as a new SwiftBuildMessage event that could contain the path information since the build process already has to produce it as a side effect. ReportPathMapInfo is a similar kind of thing that already exists; we could have a ReportRunnableInfo.
swift-runwill use this to locate the path to the executable to launch.(see https://github.com/swiftlang/swift-package-manager/pull/8331/files#r1990110132)
Suggested starting point:
SWBBuildServiceSessioncould get an API likefunc generateRunnableInfo(for request: SWBBuildRequest, targetID: String, delegate: any SWBPlanningOperationDelegate) async throws -> SWBRunnableInfowhich returns a struct containing path information for the specified target.Or, this could be emitted as a new
SwiftBuildMessageevent that could contain the path information since the build process already has to produce it as a side effect.ReportPathMapInfois a similar kind of thing that already exists; we could have aReportRunnableInfo.