Skip to content

Conversation

iCharlesHu
Copy link
Contributor

Explanation: restore WASI support to SwiftFoundationICU
Scope: Ensures SwiftFoundationICU, and by extension SwiftFoundation and SwiftCorelibsFoundation can build on WASI.
Original PR: #35
Risk: Medium - while this is a large change, it's isolated to WASI support and have been tested
Testing: Testing done via local SwiftPM, integration test with SwiftFoundation and integration tests with SwiftCorelibsFoundation
Reviewer: @MaxDesiatov

* Cherry-pick "ICU-22838 Add WebAssembly/WASI cross-compilation support"

The original patch is still under review in the upstream ICU project, but
it is needed to unblock the swift-foundation build on WebAssembly.

See unicode-org/icu#3067

* [Build] Update compile definitions for WASI target

`U_TIMEZONE` must not be defined and dynamic loading features must be
disabled for WASI target.
@iCharlesHu iCharlesHu requested a review from itingliu August 6, 2024 17:13
@iCharlesHu iCharlesHu merged commit be50023 into swiftlang:release/6.0 Aug 7, 2024
@iCharlesHu iCharlesHu deleted the charles/fix-wasi-swift-6 branch August 7, 2024 17:17
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.

3 participants