Skip to content

[5.9.0] Update macro help in driver and diagnostics #67887

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

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

bnbarham
Copy link
Contributor

Cherry-pick #67834 and #67885 into release/5.9.0

  • Explanation: -load-plugin-executable compiler option is the primary supported way of using macro plugin. SwiftPM uses this when developers use .macro() target. The driver help text should clarify the format and the semantics of the arguments. The diagnostic shouldn't mention -plugin-path or -load-plugin-library.
  • Scope: Driver help message and diagnostic
  • Risk: Extremely low, just some string changes
  • Testing: Passes current test suite
  • Issues: rdar://113646544

Clarify the format of the option and semantics.

rdar://113646544
@bnbarham bnbarham added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Aug 11, 2023
@bnbarham bnbarham requested a review from a team as a code owner August 11, 2023 03:29
@bnbarham
Copy link
Contributor Author

@swift-ci please test

This is a very large diagnostic, where the second half is mostly aimed
at macro authors rather than clients. Cut it down to the base
diagnostic.

Resolves rdar://113646544.
@bnbarham bnbarham force-pushed the 5.9.0-update-macro-help branch from 0ba4dac to 1243036 Compare August 11, 2023 16:48
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit ccc4442 into swiftlang:release/5.9.0 Aug 12, 2023
@bnbarham bnbarham deleted the 5.9.0-update-macro-help branch August 12, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants