Skip to content

Conversation

@jrflat
Copy link
Contributor

@jrflat jrflat commented Jul 25, 2025

Builds successfully with swift-DEVELOPMENT-SNAPSHOT-2025-07-23-a_wasm. Tests also build but do not run (same symptom as https://forums.swift.org/t/swiftpm-fails-to-build-swift-testing-targeting-wasm/81085).

  • _getConst_DT_DIR() for DT_DIR
  • Modified _system_dirent struct that can be imported to Swift (WASI's dirent has variable length char d_name[] which can't be imported, so this uses NAME_MAX + 1 instead)
  • #if !os(WASI) unavailable functions like umask() and pipe(), as well as unavailable Errno and open flag constants that are used directly in tests

@jrflat
Copy link
Contributor Author

jrflat commented Jul 28, 2025

@swift-ci please test

@jrflat jrflat merged commit c7eaf63 into apple:main Jul 28, 2025
23 checks passed
@glessard glessard mentioned this pull request Jul 30, 2025
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