-
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICU-22838 Add WebAssembly/WASI cross-compilation support
* Add config/mh-wasi and update configure script. WebAssembly/WASI does not support threads and dynamic linking, so the new mh-wasi file disables those features in ICU. * Teach putilimp.h not to define U_TZSET, U_TIMEZONE, and U_TZNAME for WASI WASI does not define timezone-related functionalities, and wasi-libc does not provide tzset, timezone, and tzname. This change teaches putilimp.h not to define U_TZSET, U_TIMEZONE, and U_TZNAME for WASI. * Add `U_HAVE_ATOMICS` and support platforms without atomics like WASI This change adds a new macro `U_HAVE_ATOMICS` to ICU. This macro is always defined to 1 except for platforms that do not support atomic operations like WASI. Due to the lack of threading support in WASI, the wasi-sdk does not provide `std::atomic`, `std::mutex`, and related types, so the new macro is used to disable the use of these types.
- Loading branch information
1 parent
23d9628
commit c079574
Showing
12 changed files
with
286 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.