rules_swift
rules_swift copied to clipboard
Upstream: Update the API of `swift_common.compile_module_interface`.
Cherry-pick: https://github.com/bazelbuild/rules_swift/commit/4c4184942dc091c1b43b0243848876d3c5b90c07
This adds the target_name argument that is present in other compile APIs so that supplemental outputs can get unique names based on the name of the Bazel target being compiled (will be used in a follow-up change).
Likewise, this changes the return type of the function from just the module context to a struct that contains two fields: module_context (the original value), and supplemental_outputs, which will eventually be used to provide an indexstore (supported starting from Swift 6.2/Xcode 16.3).
PiperOrigin-RevId: 741516048