diff --git a/lib/std/Build/Cache/Path.zig b/lib/std/Build/Cache/Path.zig index 48bb8c32beab9097e7bd9434a3b8ce14db875b89..cb6e4c708758ec3923239d40977e33c8f8757f17 100644 --- 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;