From 1bdc2b777bc247c52942189666bc484d8e740b16 Mon Sep 17 00:00:00 2001 From: BratishkaErik Date: Sun, 29 May 2022 14:37:16 +0600 Subject: [PATCH] tools: fix update-linux-headers.zig and process_headers.zig Signed-off-by: BratishkaErik --- test/standalone.zig | 4 ++++ tools/process_headers.zig | 3 ++- tools/update-linux-headers.zig | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/standalone.zig b/test/standalone.zig index 856a58df84..c34f9467d6 100644 --- a/test/standalone.zig +++ b/test/standalone.zig @@ -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"); diff --git a/tools/process_headers.zig b/tools/process_headers.zig index 39fbe08a4a..84126635dc 100644 --- a/tools/process_headers.zig +++ b/tools/process_headers.zig @@ -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; diff --git a/tools/update-linux-headers.zig b/tools/update-linux-headers.zig index 48fdfbbb34..cfa16fcd38 100644 --- a/tools/update-linux-headers.zig +++ b/tools/update-linux-headers.zig @@ -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); } };