Skip to content

Commit

Permalink
revert(bench): revert bench in build and remove top-level doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yamafaktory committed Sep 4, 2024
1 parent 951b62a commit d256e8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 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"));
}
}
2 changes: 0 additions & 2 deletions src/bench.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! Benchmarks for HyperZig.

const std = @import("std");
const uuid = @import("uuid");
const hyperzig = @import("hyperzig.zig");
Expand Down

0 comments on commit d256e8e

Please sign in to comment.