From 9a943048f85038d88def732fb54710765d1f650f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Jun 2024 12:35:42 +0000 Subject: [PATCH] [fix] --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 314482a..7e1c62e 100644 --- a/build.zig +++ b/build.zig @@ -188,7 +188,7 @@ fn import (builder: *std.Build, exe: *std.Build.Step.Compile, const build_options = profile.variables.createModule (); const logger = builder.createModule (.{ - .root_source_file = .{ .path = try builder.build_root.join ( + .root_source_file = .{ .cwd_relative = try builder.build_root.join ( builder.allocator, &.{ "src", zon.name, "logger.zig", }), }, .target = profile.target, .optimize = profile.optimize, @@ -197,7 +197,7 @@ fn import (builder: *std.Build, exe: *std.Build.Step.Compile, logger.addImport ("datetime", datetime); const instance = builder.createModule (.{ - .root_source_file = .{ .path = try builder.build_root.join ( + .root_source_file = .{ .cwd_relative = try builder.build_root.join ( builder.allocator, &.{ "src", zon.name, "vk", "instance", if (profile.options.turbo) "turbo.zig" else "default.zig", }), }, .target = profile.target,