Hello Sergei, On 2/5/22 23:04, Sergei Trofimovich wrote: > The idea of the change is to introduce non-deterministic ordering > into goal and prerequisite traversal to imitate non-deterministic > ordering of 'make -j' mode. > > The implementation is to reorder lists of goals to build and list > of dependencies attached to files reachable via goals. [...] > > Some high level TODOs: > - No documentation for the optin yet. > - No(?) environment passing for recursive make. I would prefer to share > the same see across all calls to get easier reproducers. > - The dependency traversal is naive and uses potentially unbounded stack. > - srand() / rand() is used from system libc. This might make it harder > to reproduce a failure on another machine. But maybe it's fine. > > If the general shape is reasonable I can try to get it up to standard. > > What do you think?
I like the concept. When debugging Makefiles, make -j may not run randomly enough to trigger some corner cases. This will allow to debug Makefiles much more easily. Thanks, Alex -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/