I want to do statistics on compiler warnings per compilation unit based on the compiler output of gcc/g++. This is no problem with -j1
but with multiple threads, e.g. -j4
, the output is completely mixed. Can I either
I'm using gcc/g++ 8.1 and (if this helps) buildbot.
Recent enough versions of GNU make have an option, -O
, which controls the behavior of parallel output:
It is a good idea to specify -O
each time you request a parallel build with a -j
option.