Bootstrap compiler for mach, written in C.
This is the first stage of the mach self-hosting pipeline. It compiles the mach source code into an intermediate compiler, which then compiles itself into the final self-hosted compiler.
Prerequisites: clang (or gcc with C23 support), make.
makeProduces out/bin/cmach.
make install # installs to /usr/local/bin/cmach
make install PREFIX=/opt/mach # custom prefixcmach is not meant to be used directly. It is acquired automatically by the mach build system. To build mach from source:
git clone https://github.com/octalide/mach
cd mach
makeIf you have cmach installed or built locally, you can point the mach build at it:
CMACH=/path/to/cmach make