std.Build.Step.Options: fix build failure

This commit is contained in:
Andrew Kelley 2025-07-06 19:14:13 -07:00
parent fd7feed04b
commit 9903587a63

View file

@ -415,7 +415,8 @@ pub fn addOptionPath(
name: []const u8,
path: LazyPath,
) void {
options.args.append(.{
const arena = options.step.owner.allocator;
options.args.append(arena, .{
.name = options.step.owner.dupe(name),
.path = path.dupe(options.step.owner),
}) catch @panic("OOM");