Skip to content

Upstream: Update the API of swift_common.compile_module_interface.#1527

Closed
luispadron wants to merge 2 commits intomainfrom
luis/cp-4c41849
Closed

Upstream: Update the API of swift_common.compile_module_interface.#1527
luispadron wants to merge 2 commits intomainfrom
luis/cp-4c41849

Conversation

@luispadron
Copy link
Copy Markdown
Contributor

@luispadron luispadron commented May 29, 2025

Cherry-pick: 4c41849

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

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
luispadron referenced this pull request May 29, 2025
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
@luispadron luispadron marked this pull request as draft May 29, 2025 01:55
@luispadron
Copy link
Copy Markdown
Contributor Author

luispadron commented May 29, 2025

Moving to draft until we can take: 81c5b92

Which requires updates to the worker code.

@luispadron luispadron closed this Mar 4, 2026
@keith keith deleted the luis/cp-4c41849 branch April 30, 2026 19:53
@keith
Copy link
Copy Markdown
Member

keith commented Apr 30, 2026

#1705

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants