Am Fri, 08 Feb 2013 16:02:14 +0100 schrieb Jacob Carlborg <[email protected]>:
> On 2013-02-08 14:39, David Nadlinger wrote: > > > Just to get some extra feedback: LDC currently ships with 2 versions of > > the standard library, a release one built with the equivalent of "-O > > -release -inline", and a debug one built with "-g". > > > > The debug one is set as "-debuglib" and thus automatically used every > > time the user compiles their code with "-g", which could lead to some > > unnecessary slowdowns, as not every time you want to debug into the > > standard library code. On the other hand, you typically _do_ want to > > have the assertions in the standard library turned on when you debug > > your own code, so... > > I think that's good approach. The use can always remove/change the > -debuglib flag if necessary, right? > Yes, there are flags for practically everything, from overriding the standard library to removing function post condition checks. -- Marco
