The order of elements in sets cannot be relied upon, because the hash values are randomized by Python. Whenever sets are converted to lists we need to keep their order stable, or random changes in the command line cause ninja to rebuild a lot of files unnecessarily. To stabilize them, use either sort or OrderedSet. Sorting is not always applicable, but it can be faster because it's done in C and it can produce slightly nicer output.pull/7900/head
parent
59cacbbfc1
commit
fc9b0cbb7f
3 changed files with 4 additions and 4 deletions
Loading…
Reference in new issue