CI / test (push) Failing after 17s
The native compositor's module runtime (compositor/wasm) only uses the standard wasm.h API, which libwasmtime implements as well as libwasmer, so the MoonBit host serves chandra:host/plasmoids with it: the same capabilities, tables and requests as the native build, from the same code. The nested window (--window) works too: a wasmhost compositor runs inside another one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiNfjrw2edja7LiRLB
29 lines
907 B
Plaintext
29 lines
907 B
Plaintext
import {
|
|
"moonbitlang/core/builtin",
|
|
"moonbitlang/core/env" @env,
|
|
"moonbitlang/core/encoding/utf8" @utf8,
|
|
"moonbitlang/core/cmp" @cmp,
|
|
"chandra/desktop/compositor/sys" @sys,
|
|
"chandra/desktop/compositor/font" @font,
|
|
"chandra/desktop/compositor/renderer" @renderer,
|
|
"chandra/desktop/compositor/wasm" @wasm,
|
|
"chandra/desktop/interface/chandra/desktop/types" @types,
|
|
"chandra/desktop/interface/chandra/desktop/theme" @theme,
|
|
"chandra/desktop/wasmhost/wt" @wt,
|
|
}
|
|
|
|
supported_targets = "-all+native"
|
|
|
|
pkgtype(kind: "executable")
|
|
|
|
// libwasmtime comes prebuilt (scripts/setup-toolchain.sh); scripts/build-wasmhost.sh puts it on
|
|
// the compiler's and linker's search paths. Linked statically: the binary needs nothing at runtime.
|
|
options(
|
|
"native-stub": [ "host_stub.c", "raster_stub.c" ],
|
|
link: {
|
|
"native": {
|
|
"cc-link-flags": "-l:libwasmtime.a -lpthread -ldl -lm",
|
|
},
|
|
},
|
|
)
|