Why no contracts for release build?

Andre via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 4 07:29:43 PDT 2014


Am 04.06.2014 16:23, schrieb Martin Krejcirik:
> On Wednesday, 4 June 2014 at 13:48:04 UTC, Andre wrote:
>> I currently wonder what is included by adding no switch to DMD?
>
>
> default (no switch) = asserts, contracts, boundscheck=all
> -debug = include code marked with debug keyword
> -unittest = include unittests
> -g = include debug info
> -release = do not include asserts, contracs, boundscheck=safeonly, some
> switch optimizations
>
> -boundscheck option can override -release option for turning on or off
> all bounds checking (there is deprecated -noboundscheck in 2.065 or
> earlier)

thanks a lot for these informations, exactly what I need.

Kind regards
André


More information about the Digitalmars-d mailing list