aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-29 20:34:20 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-30 00:48:50 -0700
commitfadd268a609aefa155bbe5c7fe9d7c07956e9cda (patch)
tree6414f5308bfdd89831081785c22bd790e3841ea6 /build.zig
parent9a0970a12bdcae105b6f3f65c0a72d95a209bd35 (diff)
downloadzig-fadd268a609aefa155bbe5c7fe9d7c07956e9cda.tar.gz
zig-fadd268a609aefa155bbe5c7fe9d7c07956e9cda.zip
upgrade more old API uses
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 5696dd44f3..316a2c6ccf 100644
--- a/build.zig
+++ b/build.zig
@@ -304,7 +304,7 @@ pub fn build(b: *std.Build) !void {
if (enable_llvm) {
const cmake_cfg = if (static_llvm) null else blk: {
if (findConfigH(b, config_h_path_option)) |config_h_path| {
- const file_contents = fs.cwd().readFileAlloc(b.allocator, config_h_path, max_config_h_bytes) catch unreachable;
+ const file_contents = fs.cwd().readFileAlloc(config_h_path, b.allocator, .limited(max_config_h_bytes)) catch unreachable;
break :blk parseConfigH(b, file_contents);
} else {
std.log.warn("config.h could not be located automatically. Consider providing it explicitly via \"-Dconfig_h\"", .{});