Thread overview
The "-release" and "-boundscheck=off" command line switches
Jun 26, 2023
Cecil Ward
Jun 27, 2023
Sergey
Jul 04, 2023
kinke
June 26, 2023
Does "-release" imply "-boundscheck=off" automatically in LDC ?
June 27, 2023
On Monday, 26 June 2023 at 19:18:52 UTC, Cecil Ward wrote:
> Does "-release" imply "-boundscheck=off" automatically in LDC ?

No, you can use '-b release-nobounds' for dub or explicitly '-boundscheck=off' with ldc2
July 04, 2023

On Monday, 26 June 2023 at 19:18:52 UTC, Cecil Ward wrote:

>

Does "-release" imply "-boundscheck=off" automatically in LDC ?

The semantics are the same as for DMD, e.g., defaulting to -boundscheck=safeonly.

September 25
On Monday, 26 June 2023 at 19:18:52 UTC, Cecil Ward wrote:
> Does "-release" imply "-boundscheck=off" automatically in LDC ?

I think No, the "-release" switch does not automatically imply "-boundscheck=off" in LDC. Because to disable bounds checking, you need to use the '-b release-nobounds' option for Dub or explicitly set '-boundscheck=off' when using ldc2.