Skip to content
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

use a connected type rather than one single type #201

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

stevenbrix
Copy link
Collaborator

@stevenbrix stevenbrix commented Jan 23, 2025

the current way MakeFromAbi works is it uses a single type per module and a switch statement. This type is considered dead code and gets stripped away. This change creates a maker type for each Swift type and associates the two, preventing the maker from being stripped away when the swift type is preserved.

Also had to remove the +MakeFromABI.swift file. It seems like having these types in that file causes them to be stripped still.

@stevenbrix stevenbrix requested a review from z2oh January 23, 2025 20:40
@stevenbrix stevenbrix requested a review from a team as a code owner January 23, 2025 20:40
@stevenbrix stevenbrix merged commit b3d535c into main Jan 24, 2025
2 checks passed
@stevenbrix stevenbrix deleted the steve/fix-static-linkage branch January 24, 2025 20:12
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