From 377a6640e81546cb4a20a363a21f58ca80cc5114 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 22 Aug 2025 12:04:40 +0200 Subject: [PATCH] Update for Zig 0.15 --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 9e30f63e..896ae042 100644 --- a/build.zig +++ b/build.zig @@ -193,13 +193,13 @@ pub fn build(b: *std.Build) !void { }); // work out which libraries we are building - var libs = std.ArrayList(*Compile).init(b.allocator); - defer libs.deinit(); + var libs = std.ArrayList(*Compile){}; + defer libs.deinit(heap.page_allocator); if (build_static) { - try libs.append(static_lib); + try libs.append(heap.page_allocator, static_lib); } if (build_shared) { - try libs.append(shared_lib); + try libs.append(heap.page_allocator, shared_lib); } const prebuilt_version_file_path = "builds/msvc/version.h";