# HG changeset patch # User Nathan Michaels # Date 1717331388 -7200 # Sun Jun 02 14:29:48 2024 +0200 # Node ID 0cd6cfd9a0225d0095001a0119196618ea4c04df # Parent be203594d135f15716ccb7c6d8da410cdf41e6cc Update for Zig 0.13.0-dev.351+64ef45eb0 diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -3,5 +3,5 @@ *.a main *.o -zig-cache +.zig-cache zig-out diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -29,4 +29,4 @@ clean: rm -f *.o *.a main - rm -rf zig-out zig-cache + rm -rf zig-out .zig-cache diff --git a/build.zig b/build.zig --- a/build.zig +++ b/build.zig @@ -8,7 +8,7 @@ const lib = b.addStaticLibrary( .{ .name = "add", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }, @@ -23,7 +23,7 @@ lib.pie = true; const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, });