Skip to content

Commit

Permalink
Fix build paths
Browse files Browse the repository at this point in the history
  • Loading branch information
poconn authored and Hejsil committed May 15, 2024
1 parent 24541be commit 28158d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const target = b.standardTargetOptions(.{});

const module = b.addModule("mecha", .{ .root_source_file = .{ .path = "mecha.zig" } });
const module = b.addModule("mecha", .{ .root_source_file = b.path("mecha.zig") });

const test_step = b.step("test", "Run all tests in all modes.");
for ([_][]const u8{
Expand All @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
"example/json.zig",
}) |test_file| {
const tests = b.addTest(.{
.root_source_file = .{ .path = test_file },
.root_source_file = b.path(test_file),
.optimize = optimize,
.target = target,
});
Expand Down

0 comments on commit 28158d5

Please sign in to comment.