KallistiOS toolchain with Rust for Dreamcast
146
KallistiOS Dreamcast toolchain with Rust (rustc_codegen_gcc).
The stock sh-elf GCC from kallistios/dc-kos-toolchain stays in /opt/toolchains/dc. Rust uses a second GCC with libgccjit and a libpthread KallistiOS built with -m4-single, both under /opt/toolchains/dc/rust.
Docker Hub: hldtux/dc-kos-toolchain-rs
docker run --platform linux/amd64 --rm -it -v "$PWD":/src hldtux/dc-kos-toolchain-rs kos-cargo build
kos-rustc is on PATH. If a crate needs libc, point Cargo at the KallistiOS fork:
[patch.crates-io]
libc = { path = "/opt/toolchains/dc/rust/libc" }
docker build --platform linux/amd64 -t dc-kos-toolchain-rs .
GCC and the Rust sysroot take several hours. JOBS sets parallelism (default 2).
Content type
Image
Digest
sha256:9c1ffaa6e…
Size
2 GB
Last updated
about 23 hours ago
docker pull hldtux/dc-kos-toolchain-rs