Skip to content

Embedded Wasm: enable import WASILibc #83792

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

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.

Resolves #83513

rdar://157467412

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.

Resolves swiftlang#83513

rdar://157467412
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner August 18, 2025 17:42
@MaxDesiatov MaxDesiatov added test suite Area: test suite standard library Area: Standard library umbrella platform support embedded Embedded Swift WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support labels Aug 18, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov moved this to In Progress in Swift for Wasm Aug 18, 2025
@MaxDesiatov MaxDesiatov requested a review from bnbarham August 18, 2025 18:42
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift platform support standard library Area: Standard library umbrella test suite Area: test suite WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
Status: No status
Status: In Progress
Development

Successfully merging this pull request may close these issues.

import WASILibc is unavailable in Embedded Swift for WASI
1 participant