diff options
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/target.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/target.zig b/lib/std/target.zig index 49913de2ee..e72a1a8452 100644 --- a/lib/std/target.zig +++ b/lib/std/target.zig @@ -637,6 +637,10 @@ pub const Target = union(enum) { pub fn asBytes(set: *const Set) *const [byte_count]u8 { return @ptrCast(*const [byte_count]u8, &set.ints); } + + pub fn eql(set: Set, other: Set) bool { + return mem.eql(usize, &set.ints, &other.ints); + } }; pub fn feature_set_fns(comptime F: type) type { |
