We should deprecate -release
Steven Schveighoffer
schveiguy at gmail.com
Thu Jul 18 19:53:11 UTC 2024
On Thursday, 18 July 2024 at 06:32:20 UTC, Sergey wrote:
> So Dub is doing fine with 'release' build option (having
> 'release-nobounds' in case it is what developer wants) and also
> it is possible to configure the release build flags.
No, dub uses -release. You have to override the release options
to keep assert/bounds checks. As we did in the related posts
benchmark:
https://github.com/jinyus/related_post_gen/blob/7e189c8892e26e3b78e83112ef8910655e87b193/d_v2/dub.json#L11
To reiterate, `-release` disables bounds checks in everything
*but* `@safe` code. The 'release-nobounds' build type also
disables bounds checks in `@safe` code.
-Steve
More information about the Digitalmars-d
mailing list