Skip to content

[6.0] Prefer toolchain's plugins to SDK plugins if the toolchain has stdlib #1592

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 1 commit into from
May 2, 2024

Conversation

ktoso
Copy link

@ktoso ktoso commented May 2, 2024

Description: For example, when using a swift.org toolchain, which contains the stdlib in the resource directory, we should use toolchain's SwiftMacros plugin instead of the platform's one. This is necessary because @TaskLocal now have become macros, and other projects within swift project must be using it (and thus be able to find the macro).
Scope/Impact:
Risk: Low
Testing: CI testing and @rintaro manually verified
Reviewed by: @ktoso (making cherry-pick on behalf of @rintaro who did the PR)

Original PR: #1590

For example, when using a OSS toolchain, which contains the stdlib in
the resource directory, we should use toolchain's SwiftMacros plugin
instead of the platform's one.
@ktoso ktoso requested review from DougGregor, bnbarham and hborla May 2, 2024 01:29
@ktoso
Copy link
Author

ktoso commented May 2, 2024

@swift-ci please test

@ktoso ktoso changed the title Change dependency on swift-tools-support-core to release/6.0 [6.0] Prefer toolchain's plugins to SDK plugins if the toolchain has stdlib May 2, 2024
@rintaro
Copy link
Member

rintaro commented May 2, 2024

@swift-ci Please test Windows

@ktoso ktoso merged commit 432d6e0 into swiftlang:release/6.0 May 2, 2024
3 checks passed
@ktoso ktoso deleted the pick-toolchain-plugin branch May 2, 2024 07:23
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