MikeK's software notebook

MikeK's software notebook

What you will find

This used to be the place where I wrote stuff I was thinking about while working on the Mozilla project.

Maybe in the near future I'll start to update it again as I'm involved in a couple of new open-source projects - updates pending...

Getting rid of the "Entering directory" and "Leaving directory" noise

Why did I reboot?Posted by Mike Kristoffersen 08 Apr, 2009 13:25:03
I like my build output without unnecessary noise. A perfect build system would for me just have some kind of progress indicator, and then in the end write "Success" if the build succeeded :)

It gets a little harder when the build fails, as some information about where the failure was and what went wrong is really helpful :)

Today I discovered one way of getting a little closer to this, for me, ideal world. It is possible from the mozconfig file to tell the build system not to produce the "Entering directory" and "Leaving directory" messages that in my eyes just clutter the build output in 99% of the cases.

The way to do it is to add a --no-print-directory option to the MOZ_MAKE_FLAGS, like:

mk_add_options MOZ_MAKE_FLAGS=--no-print-directory

If you want to add multiple options it can be done like this:

mk_add_options MOZ_MAKE_FLAGS="-j4 --no-print-directory"

The -j4 option tells the build system to have 4 processes running in parallel - be warned thou - I have 1 (one) time seen a build fail due to unlucky timing and using parallel builds (with -j2), it was easily fixed thou, as I just had to build again, giving a slightly different timing and a successful build.

  • Comments(0)//developer.mikek.dk/#post28