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
.
Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 26, 2023 The "-release" and "-boundscheck=off" command line switches | ||||
---|---|---|---|---|
| ||||
Does "-release" imply "-boundscheck=off" automatically in LDC ? |
June 27, 2023 Re: The "-release" and "-boundscheck=off" command line switches | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cecil Ward | 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 Re: The "-release" and "-boundscheck=off" command line switches | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cecil Ward | 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 |
September 25 Re: The "-release" and "-boundscheck=off" command line switches | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cecil Ward | 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.
|