-Doptimize vs --release

I’m not sure when/if this changed, but as of Zig 0.15.2 you can run both zig build -Doptimize=ReleaseFast and zig build --release=fast, and they seem to be equivalent.

Is there a difference? Is one of them more canonical? Is either planned to be deprecated?

2 Likes
5 Likes

Thanks, sounds like I should pretend --release doesn’t exist then.

1 Like