Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <your wasm SDK, e.g. swift-6.3.3-RELEASE_wasm-embedded>
GRAPHVIZ_WASM=1 swift build --swift-sdk <your wasm SDK, e.g. swift-6.4.2-RELEASE_wasm-embedded>
```

See [WASM.md](WASM.md) for the full wasm workflow and its limitations.
Expand Down
6 changes: 3 additions & 3 deletions WASM.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`):
Expand Down Expand Up @@ -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
```

Expand Down
Loading