www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23141] New: Improve -release switch description


          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 puremagic.com
          Reporter: alphaglosined gmail.com

"man gdc":

    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

    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:

              Compile release version

Source: https://forum.dlang.org/post/eopmfcglgutxbuunmbns forum.dlang.org

May 25 2022