Parallel output pin

When you run a Makefile created in CMake with several processes ( make -jN), the output is often confused as follows:

[  8%] [  8%] [  9%] Building CXX object App/CMakeFiles/App.dir/src/File1.cpp.o
Building CXX object App/CMakeFiles/App.dir/src/File2.cpp.o
Building CXX object App/CMakeFiles/App.dir/src/File3.cpp.o

I'm not sure, but I think this behavior also exists for Makefiles not created by CMake. I would say that this happens when several processes write to stdout at the same time.

I know that I'm probably pedantic, but is there any (simple) solution ?;)

+3
source share
4 answers

GNU make, , SHELL, , , . , -.

+9
+5

CMake, make -jN N > 1, CMake 0012991: " " . "", .

, Ninja make. , , . Ninja , . , : , . , Ninja , , . , . : , Ninja make .

+2
source

Sun (now Oracle) dmake, available on Linux and Solaris, will take care of this. See here and there .

0
source

All Articles