Andre Poenitz wrote: > On Sun, Mar 25, 2007 at 12:55:41PM +0200, Peter Kümmel wrote: >> Andre Poenitz wrote: >>> On Sun, Mar 25, 2007 at 04:00:42AM +0200, Peter Kümmel wrote: >>>> Andre Poenitz wrote: >>>>> I just tried cmake (again). >> When was your first try? > > Quite some time ago. I can't really remember. > >> Hope we could complete the cmake build for gcc. >> And it would be great when at least one developer >> seriously uses cmake under Linux. So I give my >> best to fix all issues. :) >> [...] >> >> -Dprofile=1 is also possible, so I propose to use this version. > > Any consistent notation would be fine with me. > >> Is it possible that you post the complete flag/switch list for >> the compiler and linker here, I'm not sure that I'll extract >> these info correctly from the auto/configure/scons files. >> >> Your wish list could look like this: ;) >> >> debug >> -D_DEBUG >> -O >> -stdlib-debug (?) >> -concept-checks (?) > > I personally find both too slow to be useful, even in debug mode. > So if at all, this should be configurable independently of > debug/release/p[rofile mode. > >> release >> -O2 (why not -O3) >> -DNDEBUG > > -O3 is ok. > >> profile >> -O2 (why not -O3) >> -DNDEBUG >> -pg > > -Wall is useful in all builds. > > Andre' >
I've added the flags debug, release, profile, stdlib-debug, and concept-checks to be used by -DXXX=1. I've tested a bit the macro based solution to minimze the rebuild of the all in one file, but it seems that the dependencies couldn't be removed by a macro, maybe I have to change the generated files for gcc so that one manually must remove the include line. Have you tried it? Now also qt4 compiles as one file. Peter