Skip to content

[Macros] Add '-plugin-path' the the toolchain's plugins in Info.plist #74018

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 30, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 30, 2024

So Xcode always prefer the plugins in the toolchain to the SDK's. Since swift.org toolchains include stdlib, it wants to use the plugins in it.

Fixes: https://forums.swift.org/t/missing-swiftmacros-tasklocalmacros/72123

So Xcode always prefer the plugins in the toolchain to the SDK's. Since
swift.org toolchains include stdlib, it wants to use the plugins in it.
@rintaro
Copy link
Member Author

rintaro commented May 30, 2024

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented May 30, 2024

@swift-ci Please build toolchain macOS

@bnbarham bnbarham requested a review from owenv May 30, 2024 21:18
Copy link
Contributor

@owenv owenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will work to append the flags when building in Xcode. As-is, it will add this plugin path after user specified flags. If you want it to be before any user specified plugin paths you'll need to flip the order

@rintaro
Copy link
Member Author

rintaro commented May 30, 2024

As-is, it will add this plugin path after user specified flags.

This is OK, user specified flags should precedes this. We just want this options before the implicit options swift-driver automatically adds.

@rintaro rintaro merged commit b068398 into swiftlang:main May 30, 2024
4 checks passed
@rintaro
Copy link
Member Author

rintaro commented May 30, 2024

Confirmed @TaskLocal is treated as a macro in Xcode 15.3

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