Sign inSign up

hldtux/dc-kos-toolchain-rs

By hldtux

•Updated about 23 hours ago

KallistiOS toolchain with Rust for Dreamcast

Image
0

146

hldtux/dc-kos-toolchain-rs repository overview

Deploy Docker Pulls

⁠dc-kos-toolchain-rs

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⁠

⁠Use

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" }

⁠Build

docker build --platform linux/amd64 -t dc-kos-toolchain-rs .

GCC and the Rust sysroot take several hours. JOBS sets parallelism (default 2).

Tag summary

Content type

Image

Digest

sha256:9c1ffaa6e…

Size

2 GB

Last updated

about 23 hours ago

docker pull hldtux/dc-kos-toolchain-rs