From a8ac654a285cbf7a76e494151869e8c80c639541 Mon Sep 17 00:00:00 2001 From: bfredl Date: Fri, 17 Apr 2026 13:36:36 +0200 Subject: [PATCH] fix(build): use cross-platform init.args.iterateAllocator() When running on windows an allocator is required: +- run exe minilua (buildvm_arch.h) +- run cmd +- run exe patch (dynasm-patched.lua) +- compile exe patch Debug native 1 errors ...\zig-x86_64-windows-0.16.0\lib\std\process\Args.zig:39:36: error: In Windows, use initAllocator instead. if (native_os == .windows) @compileError("In Windows, use initAllocator instead."); As this one-shot script uses an arena, there is no deinit() call --- build/patch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/patch.zig b/build/patch.zig index 23deb01..db2536a 100644 --- a/build/patch.zig +++ b/build/patch.zig @@ -10,7 +10,7 @@ pub fn main(init: std.process.Init.Minimal) !void { defer threaded.deinit(); const io = threaded.io(); - var iter = init.args.iterate(); + var iter = try init.args.iterateAllocator(allocator); // Skip executable name _ = iter.next();