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

[6.0] Macro plugin related changes #73458

Merged
merged 4 commits into from
May 23, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 6, 2024

Cherry-pick recent macro plugin related changes to release/6.0

Info:

  • Explanation: Bundle of recent macro plugin related changes. By this, the compiler uses the same JSON encoder/decoder as the plugins including swift-plugin-server. Also, move most of the swift-plugin-server code to swift-syntax repository. This improves re-usability of the code, so other future components can use it.
  • Risk: Mid, Changing JSON coder has some risk, but the new coder has more test coverage. Also, this changes the type discovery mechanism of swift-plugin-server form dlsym type metadata accessors to _typeByName runtime function, but the function exist for long time and well reliable.
  • Scope: Macro plugins
  • Issue: N/A
  • Reviewer: Alex Hoppen (@ahoppen) Hamish Knight (@hamishknight)

Replacing swiftLLVMSJON with SwiftCompilerPluginMessageHandling.JSON

(cherry picked from commit cd54cc1)
@rintaro
Copy link
Member Author

rintaro commented May 6, 2024

apple/swift-syntax#2643
@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented May 6, 2024

@swift-ci Please test Linux

@rintaro
Copy link
Member Author

rintaro commented May 21, 2024

apple/swift-syntax#2643
@swift-ci Please test

Move 'PluginProvider' logic to 'SwiftLibraryPluginProvider' module
so the compiler can reuse that logic for the actual in-process plugins.

(cherry picked from commit be419a3)
@rintaro rintaro force-pushed the 6.0-macros-library-provider branch from bbb7024 to 13a3af1 Compare May 22, 2024 20:44
@rintaro
Copy link
Member Author

rintaro commented May 22, 2024

apple/swift-syntax#2643
@swift-ci Please test

@rintaro rintaro merged commit 9235e41 into apple:release/6.0 May 23, 2024
5 checks passed
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.

None yet

2 participants