Closed
Description
Since the merge of package
branch of swift-corelibs-foundation
, its WASI build has been broken. Let's fix it.
Pull Requests
swift changes
- [wasm] Add shims for aliased errno constants in WASILibc overlay swiftlang/swift#75671
- [wasm] Fix ambiguous
errno
error when importing WASILibc module swiftlang/swift#75747 - [wasm] Mark
errno
as nonisolated(unsafe) in wasi-libc swiftlang/swift#75821 - 🍒 6.0 cherry-pick: [6.0][wasm] Cherry-pick
errno
platform overlay fixes swiftlang/swift#75798 - 🍒 TODO: [wasm] Mark
errno
as nonisolated(unsafe) in wasi-libc swiftlang/swift#75821
swift-collections changes
swift-foundation-icu changes
- Apply WASI support patch against ICU source tree swiftlang/swift-foundation-icu#35
- 🍒 6.0 cherry-pick: [6.0] Apply WASI support patch against ICU source tree (#35) swiftlang/swift-foundation-icu#43
swift-foundation changes
Here are my working branch including all necessary changes: swiftlang/swift-foundation@main...kateinoigakukun:swift-foundation:yt/wasi-support
- Add explicit void type parameter to C functions without parameters swiftlang/swift-foundation#775
- Add WASI platform conditions for libc imports and word size swiftlang/swift-foundation#776
- Enable wasi-libc emulation features swiftlang/swift-foundation#777
- Exclude EREMOTE definition for WASI platform swiftlang/swift-foundation#778
- Throw
.featureUnsupported
when attempting to create temp files on WASI swiftlang/swift-foundation#779 - Port
LockedState
and_ThreadLocal
to WASI without any locking swiftlang/swift-foundation#780 - Use platform shims for clock_gettime to support wasi-libc swiftlang/swift-foundation#781
- Fix
operatingSystemVersion
on WASI swiftlang/swift-foundation#782 - Guard out user/group related code on WASI swiftlang/swift-foundation#783
- Guard out extended or fs attributes related code on WASI swiftlang/swift-foundation#784
- Skip sticky-bit check in
isDeletableFile
on WASI swiftlang/swift-foundation#785 - Add explicit include of
wasi/libc-environ.h
swiftlang/swift-foundation#786 - Implement
_copyRegularFile
for WASI withoutsendfile
swiftlang/swift-foundation#787 - Use
POSIXErrorCode
instead of direct errno E constants from wasi-libc swiftlang/swift-foundation#811 - [wasm] Fall back to a default chunk size when
st_blksize
is not available swiftlang/swift-foundation#835 - Autolink wasi-libc emulation libraries swiftlang/swift-foundation#843
- Port directory enumeration related code to WASI swiftlang/swift-foundation#836
- FoundationMacros: use cross-compilation to build for host swiftlang/swift-foundation#714
- [CMake] Use consistent Swift compiler for libraries and macros
- 🍒 6.0 cherry-pick: WIP 6.0: Fix WASI support swiftlang/swift-foundation#825
swift-corelibs-foundation
- build: Repair the build on WASI platform (take 3) swiftlang/swift-corelibs-foundation#5057
- Remove the workaround for WASI errno conflict swiftlang/swift-corelibs-foundation#5063
- [XMLParser] Fix reentrancy issue around
currentParser
swiftlang/swift-corelibs-foundation#5061 - Make curl an optional dependency when not building FoundationNetworking swiftlang/swift-corelibs-foundation#5064
- 🍒 6.0 cherry-pick: WIP [6.0] build: Repair the build on WASI platform swiftlang/swift-corelibs-foundation#5053
All the above changes should be cherry-picked to 6.0 branch too.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done