www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - The "-release" and "-boundscheck=off" command line switches

reply Cecil Ward <cecil cecilward.com> writes:
Does "-release" imply "-boundscheck=off" automatically in LDC ?
Jun 26 2023
next sibling parent Sergey <kornburn yandex.ru> writes:
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
prev sibling next sibling parent kinke <noone nowhere.com> writes:
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
prev sibling parent JamesRScheller <stuartheccleston hotmail.com> writes:
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