diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-29 20:34:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-30 00:48:50 -0700 |
| commit | fadd268a609aefa155bbe5c7fe9d7c07956e9cda (patch) | |
| tree | 6414f5308bfdd89831081785c22bd790e3841ea6 /build.zig | |
| parent | 9a0970a12bdcae105b6f3f65c0a72d95a209bd35 (diff) | |
| download | zig-fadd268a609aefa155bbe5c7fe9d7c07956e9cda.tar.gz zig-fadd268a609aefa155bbe5c7fe9d7c07956e9cda.zip | |
upgrade more old API uses
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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\"", .{}); |
