## Cross-compiling with zig
Advantage using 'Zig' compiler for cross-compilation:
- Zig can compile to all supported targets with a single toolchain.Check all supported targets:
zig targets
- Hermetic toolchain. Given the same input, always produces the same output regardless of the environment. In this context “hermetic” means that it does not use files from the host (which is “leaky”) and contains everything it needs to compile a file.
cmake --list-presets
cmake -B build-linux --preset aarch64-linux-musl
cmake --build build-linux