Skip to content

fix(build): use cross-platform init.args.iterateAllocator()#206

Merged
natecraddock merged 1 commit intonatecraddock:mainfrom
bfredl:initalloc
Apr 17, 2026
Merged

fix(build): use cross-platform init.args.iterateAllocator()#206
natecraddock merged 1 commit intonatecraddock:mainfrom
bfredl:initalloc

Conversation

@bfredl
Copy link
Copy Markdown
Contributor

@bfredl bfredl commented Apr 17, 2026

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

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
@bfredl bfredl mentioned this pull request Apr 17, 2026
@natecraddock
Copy link
Copy Markdown
Owner

Thanks!

@natecraddock natecraddock merged commit c09d0cb into natecraddock:main Apr 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants