mirror of
https://github.com/ziglang/zig.git
synced 2025-01-10 04:00:31 +00:00
std.Build.Cache.Path: add eql method
This commit is contained in:
parent
ca752c61c0
commit
908c2c902a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user