diff --git a/lib/std/build.zig b/lib/std/build.zig index e9c0629f3..90ab53b46 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1843,7 +1843,7 @@ pub const LibExeObjStep = struct { } pub fn addPackage(self: *LibExeObjStep, package: Pkg) void { - self.packages.append(self.dupePkg(package)) catch unreachable; + self.packages.append(self.builder.dupePkg(package)) catch unreachable; } pub fn addPackagePath(self: *LibExeObjStep, name: []const u8, pkg_index_path: []const u8) void {