aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBratishkaErik <bratishkaerik@getgoogleoff.me>2022-05-29 14:37:16 +0600
committerIsaac Freund <mail@isaacfreund.com>2022-06-06 15:53:53 +0200
commit1bdc2b777bc247c52942189666bc484d8e740b16 (patch)
tree716aaa8b3921c9d8300172be630194e131a7746b
parent135b91aecd9be1f6f5806b667e07e383dd481198 (diff)
downloadzig-1bdc2b777bc247c52942189666bc484d8e740b16.tar.gz
zig-1bdc2b777bc247c52942189666bc484d8e740b16.zip
tools: fix update-linux-headers.zig and process_headers.zig
Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me>
-rw-r--r--test/standalone.zig4
-rw-r--r--tools/process_headers.zig3
-rw-r--r--tools/update-linux-headers.zig3
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);
}
};