Skip to content

Conversation

robbertvanginkel
Copy link

For SwiftWasm to support wasi features related to reading/writing files and stdin/stderr/stdout we need to be including more code from swift-corelibs-foundation. Various functions there rely on consts usually provided by Glibc/Darwin.

Add more consts to WASI.swift.gyb to support various code paths in swift-corelibs-foundation's Sources/Foundation/FoundationErrors.swift & Sources/Foundation/FileHandle.swift.

@kateinoigakukun
Copy link
Member

Thank you for your PR! I'll fix the CI in the next week and merge this change!

For SwiftWasm to support wasi features related to reading/writing files and
stdin/stderr/stdout we need to be including more code from
`swift-corelibs-foundation`. Various functions there rely on consts usually
provided by Glibc/Darwin.

Add more consts to WASI.swift.gyb to support various code paths in
swift-corelibs-foundation's `Sources/Foundation/FoundationErrors.swift` &
`Sources/Foundation/FileHandle.swift`.
@kateinoigakukun kateinoigakukun merged commit 48c7339 into swiftwasm:swiftwasm Dec 30, 2022
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