aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreterbase.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-26 06:13:38 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-11-15 14:21:31 +0100
commitfc9b0cbb7fe718cbbd63e3b51839b90b3e558037 (patch)
tree827db8968b02fe10d0ad6adfbddd927f6c8b5afc /mesonbuild/interpreterbase.py
parent59cacbbfc17dffe4aede1dfaa93bd5e1a3e994b2 (diff)
downloadmeson-fc9b0cbb7fe718cbbd63e3b51839b90b3e558037.zip
meson-fc9b0cbb7fe718cbbd63e3b51839b90b3e558037.tar.gz
meson-fc9b0cbb7fe718cbbd63e3b51839b90b3e558037.tar.bz2
stabilize sets that are converted to lists
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.
Diffstat (limited to 'mesonbuild/interpreterbase.py')
0 files changed, 0 insertions, 0 deletions