From eb05569fc75a18b343f9992e5e628c2b69456d10 Mon Sep 17 00:00:00 2001 From: fjebaker Date: Wed, 29 May 2024 18:18:16 +0100 Subject: [PATCH] feat: update for zig 0.13.0-dev.339+6b020c3d1 --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index fe75402..d55adfe 100644 --- a/build.zig +++ b/build.zig @@ -15,13 +15,13 @@ pub fn build(b: *std.Build) void { // set a preferred release mode, allowing the user to decide how to optimize. const optimize = b.standardOptimizeOption(.{}); - _ = b.addModule("zig-datetime", .{ .root_source_file = .{ .path = "src/main.zig" } }); + _ = b.addModule("zig-datetime", .{ .root_source_file = b.path("src/main.zig") }); const lib = b.addStaticLibrary(.{ .name = "zig-datetime", // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -33,7 +33,7 @@ pub fn build(b: *std.Build) void { // Creates a step for unit testing. const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, });