Skip to content

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

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 30, 2024

Cherry-pick #74018 into release/6.0

  • Explanation: Since @TaskLocal has been changed to a macro, swift.org toolchains are not usable with build-systems with a swift-driver that doesn't include [6.0] Prefer toolchain's plugins to SDK plugins if the toolchain has stdlib  swift-driver#1592, because the SDK's plugins precede the toolchain's. This PR avoid it by adding -plugin-path $(TOOLCHAIN_DIR)/usr/lib/swift/host/plugins to the OTHER_SWIFT_FLAGS.
  • Scope: Macro plugin discovery
  • Risk: Low, This only affects swift.org toolchains.
  • Testing: Tested locally with a toolchain built with this change
  • Issues: rdar://129066769
  • Reviewer: Ben Barham (@bnbarham) Owen Voorhees (@owenv)

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.

(cherry picked from commit faa5003)
@rintaro rintaro requested a review from a team as a code owner May 30, 2024 22:45
@rintaro
Copy link
Member Author

rintaro commented May 30, 2024

@swift-ci Please test

@rintaro rintaro merged commit 613b321 into swiftlang:release/6.0 May 31, 2024
5 checks passed
@rintaro rintaro deleted the 6.0-macros-plugin-path-plist branch May 31, 2024 17:28
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.

2 participants