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

Apply WASI support patch against ICU source tree #35

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

kateinoigakukun
Copy link
Member

467631d cherry-picks 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.

And also adjust CMakeLists.txt and Package.swift to disable timezone and dynamic loading features.

@iCharlesHu
Copy link
Contributor

Hi @kateinoigakukun thanks for the patch! We recently upgraded our ICU to 74 and I'll reapply your patch on top of 74

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
`U_TIMEZONE` must not be defined and dynamic loading features must be
disabled for WASI target.
@kateinoigakukun
Copy link
Member Author

Reapplied my patch on the top of the latest main branch :)

@kateinoigakukun
Copy link
Member Author

Confirmed this change does not break other platform builds apple/swift-foundation#823

@iCharlesHu
Copy link
Contributor

Integration test to SwiftCorelibsFoundation: apple/swift-corelibs-foundation#5040

@iCharlesHu
Copy link
Contributor

SwiftCorelibsFoundation and SwiftFoundation integration tests both passed! Merging now...

@iCharlesHu iCharlesHu merged commit ffed0b1 into apple:main Aug 6, 2024
iCharlesHu pushed a commit to iCharlesHu/swift-foundation-icu that referenced this pull request Aug 6, 2024
* 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.
@kateinoigakukun
Copy link
Member Author

Thanks!

@kateinoigakukun kateinoigakukun deleted the yt/wasi-icu-patch branch August 7, 2024 02:14
iCharlesHu added a commit that referenced this pull request Aug 7, 2024
* 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.

Co-authored-by: Yuta Saito <[email protected]>
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