~zamfofex/guix-wasm

WebAssembly cross‐compilation target for Guix
C++ support for WebAssembly, more build systems
Add support for cross-compilling to WebAssembly
938a47c8 — Florian Pelz 7 months ago
nls: Update translations.

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~zamfofex/guix-wasm
read/write
git@git.sr.ht:~zamfofex/guix-wasm

You can also use your local clone with git send-email.

#WebAssembly target for Guix

This adds a new wasm32-unknown-wasi cross-compilation target to Guix based on Clang.

#TODOs

In rough cronological order:

  • Modify the build systems appropriately to use the *-for-target procedures in order to pick up the correct compiler. (Causes a world rebuild, unfortunately.)
  • Fix gnulib to work with wasi-libc.
  • Build GNU Hello for WebAssembly.
  • Also build libc++ to WebAssembly in order to build C++ programs too.
  • Polish and organise implementation.
  • ? ? ?
  • Submit the changes for inclusion in Guix.
  • Bring support for other languages, e.g. Rust, Hakell.
  • Work on making more packages build for WebAssembly.
  • ? ? ?

#Example

./pre-inst-env guix build --target=wasm32-unknown-wasi lolcat