Targets and the -target Triple
Name the OS, arch, and ABI.
Cross-Compiling Is Built In
Zig ships every supported target inside the compiler, so cross-compilation needs no extra toolchains or downloads to begin.
The Target Triple
You name a target with a triple: it spells out the CPU architecture, the operating system, and the ABI in one string.
x86_64-linux-gnuAll lessons in this course
- Targets and the -target Triple
- Build for Linux, macOS, and Windows
- Cross-Compiling C with zig cc
- Static Binaries and musl