From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-10-22 12:44:18
Hi Volodya !
Am Mittwoch, 22. Oktober 2003 16:36 schrieb Vladimir Prus:
> Jürgen Hunold wrote:
> Is it because you like to have generated headers placed in the same
> place as build products? Why?
Please consider the following sequence:
bjam debug clean
This would first build a complete release build, then clean the debug
tree and then again rebuild _all_ generated files which "bjam debug
clean" has removed.
Unfortunately, this is something I have to do quite often, due to some
legacy debug macros used in several of my projects ;-( The only way to
ensure that all files are compiled with some preprocessor #define is to
clean the build. And I have several 100 files which need to be moc'ed
lying around here. And building in release mode is 2 to 3 times slower
than debug build.
I hope this clears my point of view. I think that something like "clean"
should remove everything that belongs to a specific build variant,
including generated sources, but never touch any file from another
variant. And this behaviour is violated by using the same generated
sources for different build variants.
> As for me, I think the fact that V2 generates absolutely the same
> file in different locations is not nice. Just an opinion, of course.
Well, right now we don't have a toolset which generates different
sources for different build variants, but this is possible, isn't it ?
And in this case, size really doesn't matter. Each build variant of
RailSys generates about 1GB of object and library files and approx.
1-10 MB of generated sources. This is 1/1000 to 1/100 of the whole
build size. It does not matter, at least for me.
What matters is consistant behaviour, as described above.
As stated in my previous mail, I have set up a special qmake environment
just to get the behaviour bjam v1 and v2 have by design. And this is
not as easy as simply setting up v2, believe me ;-)
-- * Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau * voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover * fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover * hunold_at_[hidden] ! www.ive.uni-hannover.de
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk