Should Druntime and Phobos be built with -gs ?

Brad Roberts braddr at puremagic.com
Wed Dec 5 19:31:27 PST 2012


On 12/5/2012 10:32 AM, Vladimir Panteleev wrote:
> On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg wrote:
>> Isn't it better to ship Phobos and druntime with debug versions of the libraries as well.
> 
> Yes, providing something immediately usable with the -debuglib switch would be nice (I'd imagine a build without -O or
> -inline). However, if the performance impact of -gs is negligible, there's little reason not to enable it in the release
> version of Phobos. Those who want every 0.x% of performance can always build/write their own library.

If it's the right thing to be doing, the better question is 'why isn't it the default' and not an option that has to be
turned on?


More information about the Digitalmars-d mailing list