Closed kateinoigakukun closed 3 weeks ago
@swift-ci test
Fixes issue introduced in #796.
@kateinoigakukun Seems like the Musl Swift overlay should (re)define these error codes so they're visible to Swift?
@grynspan The complex errno code definitions exist only in wasi-libc, not in musl. And we already define these error codes in WASILibc overlay module but not used them here to follow the porting policy
Fair enough. Just mentioning it in case it wasn't already handled and other projects could run into trouble. :)
Build fix for WASI
Motivation:
Use of errno values in Swift without libc overlay is not supported with wasi-libc.
https://ci.swift.org/job/oss-swift-pr-test-crosscompile-wasm-ubuntu-20_04/1784/console
Modifications:
This change introduces a new function
swt_EEXIST
to get the value ofEEXIST
because it is a complex macro in wasi-libc and cannot be imported directly into Swift.Result:
WASI build will be repaired.
Checklist: