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
- get the compiler to write the output per compiler thread to different files/outputs or
- "atomically" print all output/warnings for a single compilation unit together?
I'm using gcc/g++ 8.1 and (if this helps) buildbot.