diff options
| author | 2024-06-07 13:38:56 -0400 | |
|---|---|---|
| committer | 2024-06-07 13:38:56 -0400 | |
| commit | ba202bc3330b2690850345136acbaebc42031122 (patch) | |
| tree | 77040131a15aaa9a58298f7253c92370fb94c821 /bench/build.zig | |
| parent | Merge pull request 'build: use b.path everywhere' (#5) from rockorager/zg:mas... (diff) | |
| download | zg-ba202bc3330b2690850345136acbaebc42031122.tar.gz zg-ba202bc3330b2690850345136acbaebc42031122.tar.xz zg-ba202bc3330b2690850345136acbaebc42031122.zip | |
Updated benchmark
Diffstat (limited to 'bench/build.zig')
| -rw-r--r-- | bench/build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/build.zig b/bench/build.zig index d028851..66864c2 100644 --- a/bench/build.zig +++ b/bench/build.zig | |||
| @@ -110,7 +110,7 @@ pub fn build(b: *std.Build) !void { | |||
| 110 | for (&benches) |bench| { | 110 | for (&benches) |bench| { |
| 111 | const exe = b.addExecutable(.{ | 111 | const exe = b.addExecutable(.{ |
| 112 | .name = bench.name, | 112 | .name = bench.name, |
| 113 | .root_source_file = .{ .path = bench.src }, | 113 | .root_source_file = b.path(bench.src), |
| 114 | .target = target, | 114 | .target = target, |
| 115 | .optimize = optimize, | 115 | .optimize = optimize, |
| 116 | .strip = true, | 116 | .strip = true, |
| @@ -125,7 +125,7 @@ pub fn build(b: *std.Build) !void { | |||
| 125 | 125 | ||
| 126 | // Tests | 126 | // Tests |
| 127 | const unit_tests = b.addTest(.{ | 127 | const unit_tests = b.addTest(.{ |
| 128 | .root_source_file = .{ .path = "src/tests.zig" }, | 128 | .root_source_file = b.path("src/tests.zig"), |
| 129 | .target = target, | 129 | .target = target, |
| 130 | .optimize = optimize, | 130 | .optimize = optimize, |
| 131 | }); | 131 | }); |