diff options
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 | }); |