On Saturday, 13 July 2024 at 15:28:36 UTC, Vladimir Panteleev wrote:
>On Saturday, 13 July 2024 at 01:55:16 UTC, Steven Schveighoffer wrote:
>The -release
flag is equivalent to -O -boundscheck=safeonly -inline
.
What? No it's not.
I was wrong. I was used to dub release mode (which does include those switches), so I forgot what the compiler -release switch actually does.
>It's equivalent to -check=invariant=off -check=in=off -check=out=off -check=bounds=safeonly -check=assert=off -check=switch=off
(and what Nicholas pointed out).
Thanks, it is good to have this written down. Perhaps this actually should be in the docs at least.
>(But the rest of your post makes sense with that in mind so I think that may have been what you meant?)
The biggest problem I have, I guess, is that it's called "release". It fools people into thinking you should use it for released code.
-Steve