mirror of
https://github.com/apple/swift.git
synced 2026-10-24 20:15:56 +02:00
Add the `EmscriptenLibc` standard library overlay for `wasm32-unknown-emscripten`, layered on the `emscripten-libc.modulemap` from the build-system branch. This change provides the module surface (`EmscriptenLibc.swift.gyb`, `SwiftEmscriptenLibc.apinotes`), the `os(Emscripten)` `errno` table, Emscripten `argc`/`argv` and `swift_stdlib_random` handling, and the static link arguments. Everything is guarded for the Emscripten target, so host builds are unchanged.
6 lines
142 B
Plaintext
6 lines
142 B
Plaintext
Name: SwiftEmscriptenLibc
|
|
Globals:
|
|
# errno macro is importable but we provide explicit Swift wrapper
|
|
- Name: errno
|
|
SwiftPrivate: true
|