Skip to content
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

Align with upstream const_gather_protocols change #1376

Merged

Conversation

brentleyjones
Copy link
Collaborator

(cherry-picked from 18f2f87)

Chery-pick notes: Still didn’t take _maybe_create_const_protocols_file for now, since we keeping it as a constant file.

(cherry-picked from 18f2f87)

Chery-pick notes: Still didn’t take `_maybe_create_const_protocols_file` for now, since we keeping it as a constant file.

Signed-off-by: Brentley Jones <github@brentleyjones.com>
brentleyjones referenced this pull request Oct 14, 2024
…e extraction.

If a module populates `const_gather_protocols` when calling `create_swift_module_context`, any target that directly depends on that module will automatically have that list of protocols passed to the compiler via `-const-gather-protocols-file`. The output group `const_values` will then contain the JSON file with the extracted constant information.

This is meant to support Apple's AppIntents framework, which uses the output from `-emit-const-values-path` as an input to the AppIntent bundling tool.

PiperOrigin-RevId: 588388131
@brentleyjones brentleyjones enabled auto-merge (rebase) October 14, 2024 03:13
@brentleyjones brentleyjones merged commit aceb372 into master Oct 14, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/align-with-upstream-const_gather_protocols-change branch October 14, 2024 03:27
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.

3 participants