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/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", }, }, )