ReleaseSmall is not small anymore?

I just tried zig 0.16 in Windows and it turned out that the result binary file for the simplest test program is much larger then in the previous version with the same flags. I try this basic command to compile:

 zig build-exe main.zig -target x86_64-windows -O ReleaseSmall

In the version 0.15.2 the result exe file is 14Kb, in 0.16 – it is close to 500Kb. Maybe I missed something and now I need more flags for a minimal binary with dynamic linking to the system files? Can someone share their experience for creating small binaries?

1 Like

tracked by https://codeberg.org/ziglang/zig/issues/31421

2 Likes