From b0ef8ebe63f52e4a7d4169f2a5bb911eba4bea33 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 4 Jun 2024 14:41:31 -0700 Subject: [PATCH] update to zig 0.13-dev.365 (zig nominated build 2024.05 --- .gitignore | 2 +- build.zig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f8e519f..66891ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -zig-cache zig-out core +.zig-cache diff --git a/build.zig b/build.zig index a1ebee6..7b4cd3d 100644 --- a/build.zig +++ b/build.zig @@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void { .name = "smithy", // 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/smithy.zig" }, + .root_source_file = b.path("src/smithy.zig"), .target = target, .optimize = optimize, }); @@ -30,14 +30,14 @@ pub fn build(b: *std.Build) void { b.installArtifact(lib); const module = b.addModule("smithy", .{ - .root_source_file = .{ .path = "src/smithy.zig" }, + .root_source_file = b.path("src/smithy.zig"), }); lib.root_module.addImport("smithy", module); // Creates a step for unit testing. This only builds the test executable // but does not run it. const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/smithy.zig" }, + .root_source_file = b.path("src/smithy.zig"), .target = target, .optimize = optimize, });