sigidagi / zigpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

## Cross-compiling with zig

Zig install

download link

Advantage using 'Zig' compiler for cross-compilation:

  1. Zig can compile to all supported targets with a single toolchain.Check all supported targets: zig targets
  2. 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.

Examples

cmake --list-presets
cmake -B build-linux --preset aarch64-linux-musl
cmake --build build-linux 

About


Languages

Language:CMake 80.0%Language:Shell 10.4%Language:C 5.0%Language:C++ 4.5%