1 Star 0 Fork 0

rocket049/lockedfifo-zig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.zig 920 Bytes
一键复制 编辑 原始数据 按行查看 历史
rocket049 提交于 2025-01-15 15:57 +08:00 . init
const std = @import("std");
// Although this function looks imperative, note that its job is to
// declaratively construct a build graph that will be executed by an external
// runner.
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const lib_mod = b.createModule(.{
.root_source_file = b.path("src/lockedfifo.zig"),
.target = target,
.optimize = optimize,
});
const lib = b.addStaticLibrary(.{
.name = "lockedfifo",
.root_module = lib_mod,
});
b.installArtifact(lib);
const unit_tests = b.addTest(.{
.root_source_file = b.path("src/lockedfifo_test.zig"),
.target = target,
});
const run_unit_tests = b.addRunArtifact(unit_tests);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_unit_tests.step);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rocket049/lockedfifo-zig.git
git@gitee.com:rocket049/lockedfifo-zig.git
rocket049
lockedfifo-zig
lockedfifo-zig
master

搜索帮助