mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.58k stars 2.38k forks source link

initial zig build system support #162

Closed binarycraft007 closed 9 months ago

binarycraft007 commented 1 year ago

This MR adds zig build system support for xv6-riscv, zig build system is the cross platform build system for ziglang. The only dependency for zig build system is the zig compiler, and the caching system make it fast to rebuild.

To build kernel and filesystem image, run: zig build

To build the project and run it with qemu: zig build -fqemu