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?