Make the MoonBit host the default: just run, run-drm and install-session use build/wasmhost
CI / test (push) Failing after 17s

The Rust host stays as a fallback: just run-rust, run-drm-rust, install-session-rust
(session/install.py --rust-host). build-wasmhost.sh fetches the wasmtime C API when it is
missing and replaces build/wasmhost by renaming, so a running dev session keeps its copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiNfjrw2edja7LiRLB
This commit is contained in:
Claude committed 2026-11-25 20:10:51 +00:00
1 parent 2774516abf
commit f33f84c35b
6 files changed
+65 -32

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build the compositor itself as a wasm component: build/compositor.wasm.
# It imports only chandra:host/sys (wit/host/sys.wit) and exports `run`; the native host in
# host-wasm/ provides the imports. Needs moon and wasm-tools.
# It imports the chandra:host interfaces (wit/host) and exports `run`; the host (wasmhost/,
# build/wasmhost; or the Rust host-wasm/) provides the imports. Needs moon and wasm-tools.
# scripts/build-compositor-wasm.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"