Skip to content

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Sep 19, 2025

Explanation: Cherry-pick of #83792 (#83846 for release/6.2), merged as 450cb14
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

**Explanation**: Cherry-pick of #83792, merged as 450cb14
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
@MaxDesiatov MaxDesiatov changed the title [6.2] Embedded Wasm: enable import WASILibc (#83846) [6.2.1] Embedded Wasm: enable import WASILibc (#83846) Sep 19, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov marked this pull request as ready for review September 19, 2025 13:34
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner September 19, 2025 13:34
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) September 19, 2025 16:15
@MaxDesiatov MaxDesiatov changed the title [6.2.1] Embedded Wasm: enable import WASILibc (#83846) [6.2.1] Embedded Wasm: enable import WASILibc Sep 19, 2025
@MaxDesiatov MaxDesiatov merged commit c36e33e into release/6.2.1 Sep 19, 2025
5 checks passed
@MaxDesiatov MaxDesiatov deleted the embedded-wasilibc-6.2-6.2.1 branch September 19, 2025 21:14
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.

2 participants