Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 11, 2024
1 parent ad93dad commit 9a94304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 9a94304

Please sign in to comment.