[Issue 23141] New: Improve -release switch description

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 26 02:22:11 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23141

          Issue ID: 23141
           Summary: Improve -release switch description
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: alphaglosined at gmail.com

"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

--


More information about the Digitalmars-d-bugs mailing list