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]