Duncan Ogilvie 4b546c0475 Initial commit
2022-10-21 02:36:21 +02:00
2022-10-21 02:36:21 +02:00
2022-10-21 02:36:21 +02:00
2022-10-21 02:36:21 +02:00
2022-10-21 02:36:21 +02:00
2022-10-21 02:36:21 +02:00

zig-cross

Example of using zig as a CMake Toolchain for cross compiling.

Reference: https://zig.news/kristoff/cross-compile-a-c-c-project-with-zig-3599

Building

  • Install zig in your PATH (choco install zig on Windows)
  • cmake -B build-aarch64 -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/zig-toolchain-aarch64.cmake
  • cmake --build build-arch64
Description
Languages
CMake 89.1%
C 3.4%
C++ 3.1%
Shell 2.3%
Batchfile 2.1%