Skip to content

Commit

Permalink
fix(docs): try to disable bench step to properly generate the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yamafaktory committed Sep 4, 2024
1 parent 9b6a39e commit 951b62a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,26 @@ pub fn build(b: *std.Build) void {
check_step.dependOn(&check.step);

// Bench step.
const bench_step = b.step("bench", "Run benchmarks");
const bench_exe = b.addExecutable(.{
.name = "bench",
.root_source_file = b.path("src/bench.zig"),
.target = target,
.optimize = .ReleaseFast,
});
const bench_run = b.addRunArtifact(bench_exe);
if (b.args) |args| {
bench_run.addArgs(args);
}
bench_step.dependOn(&bench_run.step);
b.default_step.dependOn(bench_step);
// const bench_step = b.step("bench", "Run benchmarks");
// const bench_exe = b.addExecutable(.{
// .name = "bench",
// .root_source_file = b.path("src/bench.zig"),
// .target = target,
// .optimize = .ReleaseFast,
// });
// const bench_run = b.addRunArtifact(bench_exe);
// if (b.args) |args| {
// bench_run.addArgs(args);
// }
// bench_step.dependOn(&bench_run.step);
// b.default_step.dependOn(bench_step);

if (b.lazyDependency("uuid", .{
.target = target,
.optimize = optimize,
})) |dep| {
unit_tests.root_module.addImport("uuid", dep.module("uuid"));
check.root_module.addImport("uuid", dep.module("uuid"));
bench_exe.root_module.addImport("uuid", dep.module("uuid"));
// bench_exe.root_module.addImport("uuid", dep.module("uuid"));
}
}

0 comments on commit 951b62a

Please sign in to comment.