commit 908c2c902ada674eae30d81a8fb5b6c43cdfe141 (tree) parent ca752c61c08eaa06458bdc6fa3cc724c09a62f77 Author: Andrew Kelley <andrew@ziglang.org> Date: Fri, 5 Jul 2024 12:23:54 -0700 std.Build.Cache.Path: add eql method Diffstat:
| M | lib/std/Build/Cache/Path.zig | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/Build/Cache/Path.zig b/lib/std/Build/Cache/Path.zig @@ -147,6 +147,10 @@ pub fn format( } } +pub fn eql(self: Path, other: Path) bool { + return self.root_dir.eql(other.root_dir) and std.mem.eql(u8, self.sub_path, other.sub_path); +} + const Path = @This(); const std = @import("../../std.zig"); const fs = std.fs;