When targeting x86_64, the self-hosted backend is already enabled by default on the latest builds of Zig (when compiling in Debug mode). The self-hosted aarch64 backend currently isn't generally usable (so we still default to LLVM when targeting aarch64), but it's likely to be the next ISA we focus on codegen for.
replyI assume x86_64 is Linux only correct?
replyNot quite- any ELF or MachO target is enabled by default already. Windows is waiting on some COFF linker bug fixes.
reply