PureXML/scripts
Mihaela Mihaljevic 9e40278218
fix(wasm): fail check-wasm with an actionable message on a toolchain without the wasm backend (#365)
When swiftly is absent, check-wasm.sh fell back to the active `swift`. The Xcode-bundled
Apple toolchain has no WebAssembly LLVM codegen backend, so a wasm cross-compile through
it does not fail cleanly: it aborts deep inside LLVM (clang module build, "No available
targets are compatible with triple wasm32-...") with a multi-megabyte stack dump that
reads like a code bug. The SDK-presence check passed (the SDK is installed) and the build
crashed anyway, so the real cause, the wrong host toolchain, was invisible.

Detect it up front and exit 2 with an actionable message. Discriminate by the compiler's
self-reported build tag, not its path: both toolchains print "Apple Swift version X", but
the Xcode/Apple build tags it "(swiftlang-...)" while a swift.org toolchain tags it
"(swift-...-RELEASE/SNAPSHOT)". The self-report is authoritative however `swift` is
symlinked or shimmed, which a path-string match would miss. `swift -print-target-info
-target wasm32-...` is not a usable probe: it succeeds even without the backend, because
the frontend knows the triple and only codegen is missing.
2026-06-28 05:09:20 +02:00
..
benchmark.sh feat(xpath,parsing): public streaming surface, linear document-order at scale 2026-06-11 06:06:31 +02:00
check-all.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-changelog-touched.sh chore(ci): add the changelog-touched gate verification.md requires 2026-06-08 17:49:21 +02:00
check-commit-attribution.sh ci: split workflows for truthful badges and attribution gates 2026-06-08 04:37:32 +02:00
check-coverage.sh test(ci): add an opt-in coverage gate; close the 0% value types it surfaces 2026-06-22 16:38:30 +02:00
check-forbidden-patterns.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-linux.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-namespacing.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-roadmap.sh docs(roadmap): add Apple-palette mermaid roadmap and the roadmap gate 2026-06-08 00:58:50 +02:00
check-style.sh Exclude mirrored enforcement docs from style scan 2026-06-18 22:37:44 +02:00
check-validation-coverage.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-validation-fields.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-wasm.sh fix(wasm): fail check-wasm with an actionable message on a toolchain without the wasm backend (#365) 2026-06-28 05:09:20 +02:00
check-windows.ps1 chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
fetch-xsts.sh chore(test): vendor the XSTS archive (unmodified) under Tests/Fixtures (#322) 2026-06-26 09:20:37 +02:00