Get the latest tech news
New make --shuffle mode (2022)
TL;DR: I implemented new --shuffle option for GNU make to simulate non-deterministic build order in parallel makefiles. UPDATE: --shuffle mode was released as part of GNU make 4.4 and can be used as: make --shuffle ...from the command line.
I implemented new--shuffle option for GNU make to simulate non-deterministic build order in parallel makefiles. Initial idea was very simple: pick target order at Makefile parse time and reshuffle the lists randomly. Paul did not seem to object too much to the idea and pointed out that implementation will break more complex Makefile s as there is a simple way to refer to individual prerequisites by number.
Or read this on Hacker News