xmake-zigcc
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Zig / Zig CC Toolchains
Xmake has two zig toolchains and they are not interchangeable:
| Toolchain | For | Toolset |
|---|---|---|
zig |
Zig source code (.zig) |
zig build-exe, zig build-lib … |
zigcc |
C/C++ source code | zig cc, zig c++, plus ar/ranlib/objcopy/lld |
C/C++ with zig cc
xmake f --toolchain=zigcc -c
xmake
zigcc wires up the whole toolset, so static and shared libraries build too. Point at a
specific zig with --zc: