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

[embedded] Provide Unicode data tables for embedded as a static library #73585

Merged
merged 6 commits into from
May 28, 2024

Conversation

kubamracek
Copy link
Contributor

@kubamracek kubamracek commented May 12, 2024

Initial String port to embedded (#70446) skipped adding unicode data tables, and attempts to use anything that requires the data tables (e.g. string equality, hashing, splitting, etc.) will fail to link. This PR resolves this by providing a static library with the data tables, and embedded Swift users are expected to (manually) link this library if they want to use string operations that require data tables.

Note that we need to avoid depending on C++ headers because our -none targets don't have an SDK that would have those headers, I replaced usage of <limits> with <stdint.h>.

@kubamracek kubamracek requested a review from a team as a code owner May 12, 2024 19:23
@kubamracek kubamracek added the embedded Embedded Swift label May 12, 2024
@kubamracek kubamracek force-pushed the embedded-string-unicode-tables branch from b06ca64 to 78d19ff Compare May 26, 2024 20:01
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek enabled auto-merge May 28, 2024 04:12
@kubamracek kubamracek merged commit 67e9df0 into apple:main May 28, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants