digitalmars.D.ldc - The "-release" and "-boundscheck=off" command line switches
- Cecil Ward (1/1) Jun 26 2023 Does "-release" imply "-boundscheck=off" automatically in LDC ?
- Sergey (3/4) Jun 27 2023 No, you can use '-b release-nobounds' for dub or explicitly
- kinke (3/4) Jul 04 2023 The semantics are the same as for DMD, e.g., defaulting to
- JamesRScheller (5/6) Sep 24 I think No, the "-release" switch does not automatically imply
Does "-release" imply "-boundscheck=off" automatically in LDC ?
Jun 26 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
Jun 27 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`.
Jul 04 2023
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.
Sep 24