Skip to content

Commit d285fc8

Browse files
committed
build: run benchmarks explicitly, include in .zon
This commit fixes an error in the build when the package is imported as a dependency. Signed-off-by: inge4pres <[email protected]>
1 parent 60214d6 commit d285fc8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ pub fn build(b: *std.Build) !void {
102102

103103
// Benchmarks
104104
const benchmarks_step = b.step("benchmarks", "Build and run all benchmarks");
105-
benchmarks_step.dependOn(&sdk_lib.step);
106105

107106
const benchmark_mod = benchmarks_dep.module("zbench");
108107

@@ -129,6 +128,7 @@ pub fn build(b: *std.Build) !void {
129128
});
130129

131130
const docs_step = b.step("docs", "Copy documentation artifacts to prefix path");
131+
docs_step.dependOn(&sdk_lib.step);
132132
docs_step.dependOn(&install_docs.step);
133133
}
134134

build.zig.zon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build.zig.zon",
3838
"src",
3939
"examples",
40+
"benchmarks",
4041
"LICENSE",
4142
"README.md",
4243
},

0 commit comments

Comments
 (0)