This is an umbrella ticket
Motivation
It has been one of the major pain points of porting existing software using SwiftWasm as we use different libc implementation, wasi-libc, than other platforms, and wasi-libc uses some code patterns that are not friendly for Swift's existing C interoperability feature.
Detailed context
Improving the feature should reduce the cost of future porting works.
This is an umbrella ticket
Motivation
It has been one of the major pain points of porting existing software using SwiftWasm as we use different libc implementation, wasi-libc, than other platforms, and wasi-libc uses some code patterns that are not friendly for Swift's existing C interoperability feature.
Detailed context
Improving the feature should reduce the cost of future porting works.
FILEnot available in WASILibc? #2480withVaList(_:)produces a va_list with the wrong type swiftlang/swift#72398