tools: fix update-linux-headers.zig and process_headers.zig

Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me>
This commit is contained in:
BratishkaErik 2022-05-29 14:37:16 +06:00 committed by Isaac Freund
parent 135b91aecd
commit 1bdc2b777b
3 changed files with 8 additions and 2 deletions

View file

@ -83,6 +83,10 @@ pub fn addCases(cases: *tests.StandaloneContext) void {
// Ensure the development tools are buildable.
cases.add("tools/gen_spirv_spec.zig");
cases.add("tools/gen_stubs.zig");
cases.add("tools/generate_linux_syscalls.zig");
cases.add("tools/process_headers.zig");
cases.add("tools/update-license-headers.zig");
cases.add("tools/update-linux-headers.zig");
cases.add("tools/update_clang_options.zig");
cases.add("tools/update_cpu_features.zig");
cases.add("tools/update_glibc.zig");

View file

@ -267,8 +267,9 @@ const DestTarget = struct {
(@enumToInt(a.abi) *% @as(u32, 4082223418));
}
pub fn eql(self: @This(), a: DestTarget, b: DestTarget) bool {
pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool {
_ = self;
_ = b_index;
return a.arch.eql(b.arch) and
a.os == b.os and
a.abi == b.abi;

View file

@ -106,8 +106,9 @@ const DestTarget = struct {
return @truncate(u32, hasher.final());
}
pub fn eql(self: @This(), a: DestTarget, b: DestTarget) bool {
pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool {
_ = self;
_ = b_index;
return a.arch.eql(b.arch);
}
};