Checking function parameters in Phobos
Marco Leise
Marco.Leise at gmx.de
Wed Nov 20 04:13:32 PST 2013
Am Wed, 20 Nov 2013 08:49:28 +0100
schrieb Jacob Carlborg <doob at me.com>:
> What about distributing a version of druntime and Phobos with asserts
> enabled that is used by default (or with the -debug flag). Then a
> version with asserts disabled is used when the -release flag is used.
>
> We probably also want it to be possible to use Phobos with asserts
> enabled even in release mode.
That is what LDC does and with the -defaultlib switch it is
easy to use the debug Phobos in release builds. Currently this
flag is mostly used to link against the shared phobos2.so.
--
Marco
More information about the Digitalmars-d
mailing list