Skip to content

Commit

Permalink
Merge pull request #29 from fjebaker/master
Browse files Browse the repository at this point in the history
Update for Zig master
  • Loading branch information
frmdstryr authored May 29, 2024
2 parents a9c7524 + eb05569 commit 1334f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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,
});
Expand Down

0 comments on commit 1334f86

Please sign in to comment.