-
Notifications
You must be signed in to change notification settings - Fork 29
Apply WASI support patch against ICU source tree #35
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
Conversation
|
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.
2deca9f to
7a2d6bd
Compare
|
Reapplied my patch on the top of the latest main branch :) |
|
Confirmed this change does not break other platform builds swiftlang/swift-foundation#823 |
|
Integration test to SwiftCorelibsFoundation: swiftlang/swift-corelibs-foundation#5040 |
|
SwiftCorelibsFoundation and SwiftFoundation integration tests both passed! Merging now... |
* 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.
|
Thanks! |
* 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 <kateinoigakukun@gmail.com>
* Update to icu76 (original) * do not build with darwin platform flag to avoid entering the path that requires darwin internal SDK * Fix Linux build * Reapply renaming expansion like #63 * Fix windows build: Use PI defined in the source in case M_PI isn't defined. * Add the same flag that we added to Package.swift to cmakefile * Update to c++17 * Fix cmake flag * Reapply WASI fix from PR #35 * fix WASI build --------- Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
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.