Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

324 B
Raw Blame
#!/bin/sh
# Builds the test modules (needs clang and lld; see docs/WASM.md, "Packages in the VM").
set -e
cd "$(dirname "$0")"
clang --target=wasm32 -O2 -nostdlib -mbulk-memory -msign-ext -mnontrapping-fptoint \
      -Wl,--no-entry -Wl,--allow-undefined -Wl,--export-memory -o demo.wasm demo.c
wat2wasm api.wat -o api.wasm