aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/Build.zig')
-rw-r--r--lib/std/Build.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
index 2644b79dcd..5a5bce5127 100644
--- a/lib/std/Build.zig
+++ b/lib/std/Build.zig
@@ -2195,7 +2195,7 @@ fn dependencyInner(
sub_builder.runBuild(bz) catch @panic("unhandled error");
if (sub_builder.validateUserInputDidItFail()) {
- std.debug.dumpCurrentStackTrace(@returnAddress());
+ std.debug.dumpCurrentStackTrace(.{ .first_address = @returnAddress() });
}
}
@@ -2524,7 +2524,10 @@ pub const LazyPath = union(enum) {
.up = gen.up,
.sub_path = dupePathInner(allocator, gen.sub_path),
} },
- .dependency => |dep| .{ .dependency = dep },
+ .dependency => |dep| .{ .dependency = .{
+ .dependency = dep.dependency,
+ .sub_path = dupePathInner(allocator, dep.sub_path),
+ } },
};
}
};