Bug 23141 – Improve -release switch description

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-26T02:22:11Z
Last change time
2022-05-27T09:13:54Z
Keywords
pull
Assigned to
No Owner
Creator
Richard Cattermole

Comments

Comment #0 by alphaglosined — 2022-05-26T02:22:11Z
"man gdc": -frelease Turns on compiling in release mode, which means not emitting runtime checks for contracts and asserts. Array bounds checking is not done for @system and @trusted functions, and assertion failures are undefined behavior. This is equivalent to compiling with the following options: gdc -fno-assert -fbounds-check=safe -fno-invariants \ -fno-postconditions -fno-preconditions -fno-switch-errors "ldc2 --help" --release - Compile release version, defaulting to disabled asserts/contracts/invariants, and bounds checks in @safe functions only But "man dmd" isn't helpful at all: -release Compile release version Source: https://forum.dlang.org/post/[email protected]
Comment #1 by dlang-bot — 2022-05-26T14:56:21Z
@RazvanN7 created dlang/dmd pull request #14170 "Fix Issue 23141 - Improve -release switch description" fixing this issue: - Fix Issue 23141 - Improve -release switch description https://github.com/dlang/dmd/pull/14170
Comment #2 by dlang-bot — 2022-05-27T09:13:54Z
dlang/dmd pull request #14170 "Fix Issue 23141 - Improve -release switch description" was merged into master: - e67c62b43d211d994c2ce0c1b01967a007967118 by RazvanN7: Fix Issue 23141 - Improve -release switch description https://github.com/dlang/dmd/pull/14170