Initial commit
This commit is contained in:
11
README.md
Normal file
11
README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# zig-cross
|
||||
|
||||
Example of using [zig](https://ziglang.org) as a CMake Toolchain for cross compiling.
|
||||
|
||||
Reference: https://zig.news/kristoff/cross-compile-a-c-c-project-with-zig-3599
|
||||
|
||||
## Building
|
||||
|
||||
- [Install zig](https://ziglang.org/learn/getting-started/#installing-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`
|
||||
Reference in New Issue
Block a user