How do I group output when doing Non-recursive GNU make with -j option -


we have create , using custom non-recursive gnu make based build system.

as such fast (intended), standard output gets jumbled when building dependencies using -j option. have tried using --output-sync option try , serialize output still not working desired.

example:

all: foo foo2 foo: bar bar2 bar3     @echo foo bar:     @echo bar bar2:     @echo bar2 bar3:     @echo bar3  foo2: bar4 bar5 bar6     @echo foo2 bar4:     @echo bar4 bar5:     @echo bar5 bar6:     @echo bar6 

when run without -j sequential output:

make

bar bar2 bar3 foo bar4 bar5 bar6 foo2 

when run -j get:

make -j

bar bar2 bar4 bar6 bar3 bar5 foo foo2 

attempting fix issue tried using output-sync in make 4.0

make -j -otarget

bar bar2 bar5 bar3 bar6 bar4 foo foo2 

is there way force make group recipes when use -j option output is:

bar bar2 bar3 foo bar4 bar5 bar6 foo2 

update: way output when using -j indeed random each time run make, examples output of 1 specific run.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -