Why no contracts for release build?

Martin Krejcirik via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 4 07:23:20 PDT 2014


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)


More information about the Digitalmars-d mailing list