Skip to content

Conversation

@rauhul
Copy link
Member

@rauhul rauhul commented May 10, 2025

To workaround proper support for the Embedded Swift linkage model in SwiftPM, this PR updates the build plan to include -Xfrontend -mergeable symbols when building Embedded targets. This is a workaround/stop-gap solution until we can implement #8653.

Fixes: #8648

To workaround proper support for the Embedded Swift linkage model in
SwiftPM, this PR updates the build plan to include -Xfrontend -mergeable
symbols when building Embedded targets. This is a workaround/stop-gap
solution until we can implement #8653.

Fixes: 8648
@rauhul rauhul added the embedded Support for Embedded Swift label May 10, 2025
@rauhul
Copy link
Member Author

rauhul commented May 10, 2025

@swift-ci please test

Copy link
Member

@dschaefer2 dschaefer2 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@rauhul rauhul merged commit 2b0505e into main May 12, 2025
6 checks passed
@rauhul rauhul deleted the rauhul/embedded-mergable-symbols branch May 12, 2025 13:42
@MaxDesiatov MaxDesiatov restored the rauhul/embedded-mergable-symbols branch June 3, 2025 13:17
MaxDesiatov pushed a commit that referenced this pull request Jun 3, 2025
@kkebo
Copy link
Contributor

kkebo commented Oct 14, 2025

@rauhul Recently, I've been seeing the following warning every time I build an Embedded Swift project.

<unknown>:0: warning: flag '-mergeable-symbols' is deprecated

Is the -mergeable-symbols flag still necessary?

Related PR: swiftlang/swift#84161

@MaxDesiatov
Copy link
Contributor

IIUC it's no longer necessary, but I'm not sure if this change can be cleanly reverted, or is a different kind of cleanup needed

@rauhul
Copy link
Member Author

rauhul commented Oct 14, 2025

We should be able to easily remove this flag now.

@rauhul
Copy link
Member Author

rauhul commented Oct 14, 2025

#9246

@kkebo
Copy link
Contributor

kkebo commented Oct 14, 2025

Thank you so much! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

embedded Support for Embedded Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass -Xfrontend -mergeable-symbols for embedded objects

5 participants