diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-18 22:52:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 22:52:57 +0200 |
commit | 1c582a9de4cd0e5f332ba5b626034f62baf103c6 (patch) | |
tree | 08c30e539405d33dfb9b496d6b2cfeff5e4c16ff /mesonbuild/backend/ninjabackend.py | |
parent | f1ce78d77f178deb7a458235132d1fc8c44d0afe (diff) | |
parent | 0b2865e8b95ef119271011c5854836589e8866ad (diff) | |
download | meson-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.py | 4 |
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 |