build.zig: replace deprecated GeneralPurposeAllocator alias with DebugAllocator

This commit is contained in:
Justus Klausecker 2026-03-13 09:50:16 +01:00
parent 1de4e14096
commit 973ec41097

View File

@ -265,7 +265,7 @@ pub fn build(b: *Build) !void {
const progress_file_size = try progress_file.length(io);
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
var gpa = std.heap.DebugAllocator(.{}){};
defer _ = gpa.deinit();
const allocator = gpa.allocator();
const contents = try allocator.alloc(u8, progress_file_size);