[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using shell wrapper for descrambling parallel make output
From: |
Atte Peltomäki |
Subject: |
Using shell wrapper for descrambling parallel make output |
Date: |
Fri, 11 Nov 2011 16:26:53 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
As you know, running parallel builds with '-jX' makes the shell output
difficult to read, since output from parallel jobs are mixed. To remedy
this, the use of a buffering shell wrapper has been suggested:
http://cmcrossroads.com/cm-basics/12838-descrambling-parallel-build-logs
I liked the idea, but implementation was lacking so I rewrote the
wrapper.
To further descramble output, upgrade to make 3.82 and use .ONESHELL:
directive. For doing this with the wrapper, a simple patch needs to be
applied to make so it treats the wrapper as a normal shell. I also
strongly encourage applying this patch for 3.82 which fixes a nasty
memory leak/corruption:
http://savannah.gnu.org/bugs/download.php?file_id=23275
If I have time and interest, I will look into implementing the wrapper
functionality into make itself. Don't hold your breath, though.
--
Atte Peltomäki
address@hidden <> http://kameli.org
"Your effort to remain what you are is what limits you"
mwrap.c
Description: Text Data
make-oneshell_mwrap-fix.diff
Description: Text Data
- Using shell wrapper for descrambling parallel make output,
Atte Peltomäki <=