On Sun, Nov 4, 2012 at 9:39 PM, Joseph Rushton Wakeling <[email protected]> wrote: > Can I suggest adding a "release" option to the LDC build config? Something > that would allow you to do e.g. cmake -release or make -release depending on > which is more convenient, and have appropriate CFLAGS, CXXFLAGS and D_FLAGS > chosen.
I think this is the wrong approach. Whether you want a debug or release build of druntime/Phobos is not decided at LDC build time, but rather when you use LDC to build your applications (most of the time, a release build is probably fine). The default should be switched to -O3 -release, and a second set of libraries should be built with -g and a -debug suffix (e.g. libdruntime-ldc-debug.a) for use with -debuglib. Anyone wants to grab this task? I'm unfortunately swamped at the moment. David --
