authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-05 12:23:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-12 00:14:07-07:00
log908c2c902ada674eae30d81a8fb5b6c43cdfe141
treed9a5e47cbd05ff491af56e75577d928be9de4716
parentca752c61c08eaa06458bdc6fa3cc724c09a62f77

std.Build.Cache.Path: add eql method


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/Build/Cache/Path.zig+4
......@@ -147,6 +147,10 @@ pub fn format(
147147 }
148148}
149149
150pub fn eql(self: Path, other: Path) bool {
151 return self.root_dir.eql(other.root_dir) and std.mem.eql(u8, self.sub_path, other.sub_path);
152}
153
150154const Path = @This();
151155const std = @import("../../std.zig");
152156const fs = std.fs;