原文链接: https://zig.news/xq/zig-build-explained-part-2-1850 API 适配到 Zig 0.11.0 版本 注释 从现在起,我将只提供一个最精简的 build.zig,用来说明解决一个问题所需的步骤。如果你想了解如何将所有这些文件粘合到一个构建文件中,请阅读本系列第一篇文章。 在命令行上编译 C 代码 Zig 有两种编译 C 代码的方法,而且这两种很容易混淆。 使用 zig cc Zig 提供了 LLVM c 编译器 clang。第一...| Zig 语言中文社区
The Zig build system is still missing documentation and for a lot of people, this is a killer...| Zig NEWS