From 58f524ed6834790b29ac1e97b2f9e6b7de7b5346 Mon Sep 17 00:00:00 2001 From: chip2n Date: Fri, 17 May 2024 14:24:02 +0200 Subject: [PATCH] Fix build errors --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 900099f..7f502ac 100644 --- a/build.zig +++ b/build.zig @@ -7,19 +7,19 @@ pub fn build(b: *std.Build) void { _ = b.addModule( "obj", - .{ .root_source_file = .{ .path = "src/main.zig" } }, + .{ .root_source_file = b.path("src/main.zig") }, ); const lib = b.addStaticLibrary(.{ .name = "zig-obj", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); b.installArtifact(lib); const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "test.zig" }, + .root_source_file = b.path("test.zig"), .target = target, .optimize = optimize, });