aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-11-18 22:52:57 +0200
committerGitHub <noreply@github.com>2020-11-18 22:52:57 +0200
commit1c582a9de4cd0e5f332ba5b626034f62baf103c6 (patch)
tree08c30e539405d33dfb9b496d6b2cfeff5e4c16ff /mesonbuild/backend/ninjabackend.py
parentf1ce78d77f178deb7a458235132d1fc8c44d0afe (diff)
parent0b2865e8b95ef119271011c5854836589e8866ad (diff)
downloadmeson-1c582a9de4cd0e5f332ba5b626034f62baf103c6.zip
meson-1c582a9de4cd0e5f332ba5b626034f62baf103c6.tar.gz
meson-1c582a9de4cd0e5f332ba5b626034f62baf103c6.tar.bz2
Merge pull request #7900 from bonzini/stabilize-hash
Avoid build.ninja changes due to order of hash table iteration
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index c3c5705..15218c1 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -359,9 +359,9 @@ class NinjaBuildElement:
rulename = self.rulename
line = 'build {}{}: {} {}'.format(outs, implicit_outs, rulename, ins)
if len(self.deps) > 0:
- line += ' | ' + ' '.join([ninja_quote(x, True) for x in self.deps])
+ line += ' | ' + ' '.join([ninja_quote(x, True) for x in sorted(self.deps)])
if len(self.orderdeps) > 0:
- line += ' || ' + ' '.join([ninja_quote(x, True) for x in self.orderdeps])
+ line += ' || ' + ' '.join([ninja_quote(x, True) for x in sorted(self.orderdeps)])
line += '\n'
# This is the only way I could find to make this work on all
# platforms including Windows command shell. Slash is a dir separator