authorgravatar for bratishkaerik@getgoogleoff.meBratishkaErik <bratishkaerik@getgoogleoff.me> 2022-05-29 14:37:16+06:00
committergravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2022-06-06 15:53:53+02:00
log1bdc2b777bc247c52942189666bc484d8e740b16
tree716aaa8b3921c9d8300172be630194e131a7746b
parent135b91aecd9be1f6f5806b667e07e383dd481198

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

Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me>

3 files changed, 8 insertions(+), 2 deletions(-)

test/standalone.zig+4
......@@ -83,6 +83,10 @@ pub fn addCases(cases: *tests.StandaloneContext) void {
8383 // Ensure the development tools are buildable.
8484 cases.add("tools/gen_spirv_spec.zig");
8585 cases.add("tools/gen_stubs.zig");
86 cases.add("tools/generate_linux_syscalls.zig");
87 cases.add("tools/process_headers.zig");
88 cases.add("tools/update-license-headers.zig");
89 cases.add("tools/update-linux-headers.zig");
8690 cases.add("tools/update_clang_options.zig");
8791 cases.add("tools/update_cpu_features.zig");
8892 cases.add("tools/update_glibc.zig");
tools/process_headers.zig+2-1
......@@ -267,8 +267,9 @@ const DestTarget = struct {
267267 (@enumToInt(a.abi) *% @as(u32, 4082223418));
268268 }
269269
270 pub fn eql(self: @This(), a: DestTarget, b: DestTarget) bool {
270 pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool {
271271 _ = self;
272 _ = b_index;
272273 return a.arch.eql(b.arch) and
273274 a.os == b.os and
274275 a.abi == b.abi;
tools/update-linux-headers.zig+2-1
......@@ -106,8 +106,9 @@ const DestTarget = struct {
106106 return @truncate(u32, hasher.final());
107107 }
108108
109 pub fn eql(self: @This(), a: DestTarget, b: DestTarget) bool {
109 pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool {
110110 _ = self;
111 _ = b_index;
111112 return a.arch.eql(b.arch);
112113 }
113114 };