On Friday, 8 February 2013 at 09:24:26 UTC, Vladimir Panteleev wrote:
Some questions about the default DFLAGS settings in Phobos and Druntime makefiles:

1. Why is -g or -gc not used? Are there any situations where the presence of debug information in the static library undesirable?

2. Why is -inline not used in Phobos?

3. Any reason why -gs is not used?

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...

David

Reply via email to