Parallel Make Output

后端 未结 6 446
一个人的身影
一个人的身影 2021-01-03 10:35

When running a CMake generated Makefile with multiple processes (make -jN), the output often gets messed up like this:

[  8%] [  8%] [  9%] Buil         


        
6条回答
  •  暖寄归人
    2021-01-03 11:10

    If you're using GNU make, you can do it by redefining SHELL such that commands are wrapped by a trivial utility that ensures atomicity of information printed to standard output. Here's a more detailed description, including sample source for the wrapper utility.

提交回复
热议问题