Our previous logic of generating ghc-asterius package sources incorrectly bundles the _build/stage1 auto-generated files, which is wrong regarding cross compilation. Stage distinction is of grave importance when we switch to cross compilation mode, with differing word sizes for host/target platform.
The current logic fixes that, and it works for wasm32-unknown-wasi too.
Other fixes that sneaked in:
The wasmtime, wizer tools are no longer nix overlays for simplicity, and they are patched from official bindists instead of built from sources.
Bump wasi-sdk, bootstrapped with llvm-13 on linux, and contains a WIP for x86_64-darwin support.
Our previous logic of generating
ghc-asterius
package sources incorrectly bundles the_build/stage1
auto-generated files, which is wrong regarding cross compilation. Stage distinction is of grave importance when we switch to cross compilation mode, with differing word sizes for host/target platform.The current logic fixes that, and it works for
wasm32-unknown-wasi
too.Other fixes that sneaked in:
wasmtime
,wizer
tools are no longer nix overlays for simplicity, and they are patched from official bindists instead of built from sources.wasi-sdk
, bootstrapped with llvm-13 on linux, and contains a WIP forx86_64-darwin
support.