aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-04 14:43:51 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-04 14:43:51 -0400
commitd02838b71a0b0fd3495c1b714ab3c6da05441980 (patch)
treefe5534c66a1da33d7ce6e6c331018d99906e419b /tools
parentdc7e8b2fdcc35bc78abfe2413201ca6a74aa20d4 (diff)
downloadzig-d02838b71a0b0fd3495c1b714ab3c6da05441980.tar.gz
zig-d02838b71a0b0fd3495c1b714ab3c6da05441980.zip
add libutil to zig's glibc support
Diffstat (limited to 'tools')
-rw-r--r--tools/update_glibc.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/update_glibc.zig b/tools/update_glibc.zig
index d118b1482e..38a7810579 100644
--- a/tools/update_glibc.zig
+++ b/tools/update_glibc.zig
@@ -21,6 +21,7 @@ const lib_names = [_][]const u8{
"pthread",
"rt",
"ld",
+ "util",
};
// fpu/nofpu are hardcoded elsewhere, based on .gnueabi/.gnueabihf with an exception for .arm
@@ -182,7 +183,8 @@ pub fn main() !void {
}
break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, basename });
};
- const contents = std.io.readFileAlloc(allocator, abi_list_filename) catch |err| {
+ const max_bytes = 10 * 1024 * 1024;
+ const contents = std.fs.cwd().readFileAlloc(allocator, abi_list_filename, max_bytes) catch |err| {
std.debug.warn("unable to open {}: {}\n", .{ abi_list_filename, err });
std.process.exit(1);
};