From 941f161974115b677ee7514abf45ec7a216f250f Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sun, 26 May 2024 15:02:56 +0100 Subject: Changes for latest zig master --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index ae532eb..139ea79 100644 --- a/build.zig +++ b/build.zig @@ -19,21 +19,21 @@ pub fn build(b: *std.Build) void { .name = "zigwebserver-exe", // 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, }); const lib = b.addStaticLibrary(.{ .name = "zigwebserver", - .root_source_file = .{ .path = "src/zigwebserver.zig" }, + .root_source_file = b.path("src/zigwebserver.zig"), .target = target, .optimize = optimize, }); b.installArtifact(lib); // for zig module system - _ = b.addModule("zigwebserver", .{ .root_source_file = .{ .path = "src/zigwebserver.zig" } }); + _ = b.addModule("zigwebserver", .{ .root_source_file = b.path("src/zigwebserver.zig") }); // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default @@ -66,7 +66,7 @@ pub fn build(b: *std.Build) void { // Creates a step for unit testing. This only builds the test executable // but does not run it. const unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); -- cgit v1.2.3-ZIG