Files
swift-mirror/stdlib/public/Platform
Max Desiatov c36e33ea7a [6.2.1] Embedded Wasm: enable import WASILibc (#84396)
**Explanation**: Cherry-pick of #83792, merged as 450cb14597
WASILibc wasn't built for the embedded stdlib in `stdlib/public/Platform/CMakeLists.txt`. New `copy_wasilibc_modulemap_embedded_resource` and `embedded-stdlib-platform-${triple}` targets are added, the latter for `wasm32-unknown-wasip1` only for now. Also added a `wasilibc_functions.swift` test to verify the result.
**Scope**: limited to Embedded Swift for Wasm;
**Risk**: low due to limited scope;
**Testing**: added new lit test to the existing Embedded Swift test suite;
**Issue**: rdar://157467412
**Reviewer**: @bnbarham
2025-09-19 14:14:32 -07:00
..
2024-05-28 13:02:16 -07:00
2024-04-10 09:38:02 -07:00
2024-04-10 09:38:02 -07:00
2024-09-11 13:34:42 +02:00

This directory holds the Swift Standard Library's Darwin and Glibc Module, comprised of

  • The overlay library, which amends some APIs imported from Clang module.
  • Glibc only: The clang module map which specifies which headers need to be imported from Glibc for bare minimum functionality.

Note: On Darwin platforms, we assume clang module map is already installed in the system SDK.