From dc0eef36c8d00bd6e43567536369114b9a173090 Mon Sep 17 00:00:00 2001 From: Klaus Kneupner Date: Wed, 11 Nov 2026 21:09:23 +0100 Subject: [PATCH] docs: build for wasm with the Swift 6.4.2 SDK SwiftGraphviz and GraphvizBridge build cleanly with swift-6.4.2-RELEASE_wasm-embedded, and swift test passes on 6.4.2. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- WASM.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99b33a8..081d4e6 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Then add `"SwiftGraphviz"` to your target's dependencies. Apple and Linux are picked automatically. WebAssembly is a cross-compile, so opt in with an environment variable: ```bash -GRAPHVIZ_WASM=1 swift build --swift-sdk +GRAPHVIZ_WASM=1 swift build --swift-sdk ``` See [WASM.md](WASM.md) for the full wasm workflow and its limitations. diff --git a/WASM.md b/WASM.md index cedbb5a..b8344e7 100644 --- a/WASM.md +++ b/WASM.md @@ -91,10 +91,10 @@ The C library, the Swift side and the VGraph integration are done. ### 1. Compile SwiftGraphviz + GraphvizBridge for embedded wasm — DONE ✅ Both compile cleanly under **Embedded Swift** for `wasm32-unknown-wasip1` -(verified 2026-07-12 with `swift-6.3.3-RELEASE_wasm-embedded`): +(verified 2026-07-12 with `swift-6.3.3-RELEASE_wasm-embedded`, again 2026-11-11 with `swift-6.4.2-RELEASE_wasm-embedded`): ```sh -GRAPHVIZ_WASM=1 swift build --swift-sdk swift-6.3.3-RELEASE_wasm-embedded +GRAPHVIZ_WASM=1 swift build --swift-sdk swift-6.4.2-RELEASE_wasm-embedded ``` Package.swift wiring (all conditioned on `.wasi`): @@ -175,7 +175,7 @@ set (the manifest runs on the host and can't otherwise detect a wasm cross-compile): ```sh -GRAPHVIZ_WASM=1 swift build --swift-sdk swift-6.3.3-RELEASE_wasm-embedded \ +GRAPHVIZ_WASM=1 swift build --swift-sdk swift-6.4.2-RELEASE_wasm-embedded \ -Xlinker -lsetjmp -Xlinker -lwasi-emulated-signal ```