Tip: if you have QEMU installed you can run the unit tests for a Zig project for any target by adding two flags:

$ zig build test -Dtarget=mips-linux -fqemu
All 2 tests passed.

Looks like I didn't mess up any big endian logic!

If you have binfmt_misc installed, you don't even need the -fqemu flag.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.