Issue 23141 - Improve -release switch description
Summary: Improve -release switch description
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-05-26 02:22 UTC by Richard (Rikki) Andrew Cattermole
Modified: 2022-05-27 09:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Richard (Rikki) Andrew Cattermole 2022-05-26 02:22:11 UTC
"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/eopmfcglgutxbuunmbns@forum.dlang.org
Comment 1 Dlang Bot 2022-05-26 14:56:21 UTC
@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 Dlang Bot 2022-05-27 09:13:54 UTC
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