Ship a program¶
Start with a normal optimized executable:
That CPU setting is for x86-64 deployment. fibc build --static needs musl
pieces (or a release packaged with them). It produces a Linux binary suitable
for a scratch image; provision certificates and configuration yourself.
--emit c emits a translation unit and --via c builds through cc.
WASI builds need a wasm linker and WASI sysroot. See
targets and deployment before cross-building.
The program below can be built as hello and exits successfully.