On 9-3-2012 10:00, Jasper van de Gronde wrote:
On 08-03-12 21:52,
Johan Engelen wrote:
Hi all,
I would like to have an IRC meeting about the build system on
Windows.
Although I like buildtool, it cannot do parallel builds, so I am
happy
to change (back) to something else. And unify it with Linux if
possible...
I am trying cmake now, but it does not link without errors yet.
It is
not very encouraging to see the cmake build process get stuck on
some
intermediate step for a long while, seemingly checking something
to find
out it does not need to rebuild it. "btool" does this much much
quicker...
In any case, I'd like to discuss the options. Who's in?
Depends on when the meeting is, but I wouldn't mind participating.
And here's an alternative option: use buildtool on Linux as well.
Seriously. Yes, buildtool has its deficiencies, and it is much
less
flexible than *make, but it is /so/
much easier to use and maintain (the
build file itself I mean, not buildtool). I'm completely unaware
of the
issues involved in getting it to work on Linux, so perhaps it's
just not
very feasible. Or perhaps I'm unaware of some of the issues
buildtool
has on Windows. But I would hate to see buildtool go and be
replaced by
some other monster of a build system just because it couldn't do
parallel builds (which should in principle be fixable).
This of course triggered me to see if I could hack buildtool to do
parallel builds. It turns out to be extremely easy to do so!
See rev. 11087
Rebuild buildtool with "-fopenmp" and then you should be able to use
the "-j" (20 parallel threads) option or e.g. "-j 4" (4 threads).
Needless to say this speeds up a clean build tremendously on i7
2600K: 7 minutes.
It is somewhat buggy, but who cares You have to run btool once more without "-j" to
get a build done. Someone should be able to fix that...
Cheers!
Johan