Fix build runner cwd causing relative @src (#898)

Co-authored-by: Nameless <truemedian@gmail.com>

Co-authored-by: Nameless <truemedian@gmail.com>
This commit is contained in:
Auguste Rame 2023-01-08 23:13:20 -05:00 committed by GitHub
parent 68790c73a7
commit 21b103c158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,6 +431,7 @@ fn loadBuildConfiguration(
const zig_run_result = try std.ChildProcess.exec(.{ const zig_run_result = try std.ChildProcess.exec(.{
.allocator = arena_allocator, .allocator = arena_allocator,
.argv = args.items, .argv = args.items,
.cwd = try std.fs.path.resolve(arena_allocator, &.{ config.zig_exe_path.?, "../" }),
}); });
defer { defer {