Skip to content

neko782/xz-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xz-wasm

Completely vibe coded script to build liblzma as a standalone WebAssembly module for WASI.

Upstream

  • Upstream source is tracked as the git submodule at upstream/xz.
  • The submodule is pinned to the upstream release in upstream.env.

Local build

git submodule update --init --checkout
./scripts/build-wasi.sh

Outputs land in dist/:

  • dist/liblzma.a
  • dist/liblzma.wasm
  • dist/build-info.txt
  • dist/SHA256SUMS

Reproducible Docker build

The Docker image installs Debian packages from a fixed snapshot timestamp. That keeps the toolchain stable across rebuilds.

git submodule update --init --checkout
./scripts/build-docker.sh

Useful overrides:

DEBIAN_SNAPSHOT=20260306T000000Z ./scripts/build-docker.sh
DEBIAN_RELEASE=bookworm ./scripts/build-docker.sh
OUT_DIR=$PWD/out ./scripts/build-wasi.sh
WASI_SYSROOT=/usr ./scripts/build-wasi.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors