Skip to content

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

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.

2 participants