ninjabackend: use an unordered set for NinjaBuildElement

The deps and orderdeps are sorted on output, so there is no need to preserve
their order.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
pull/12190/merge
Paolo Bonzini 3 weeks ago committed by Eli Schwartz
parent 1b15bd0343
commit 58d1efb5b2
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      mesonbuild/backend/ninjabackend.py

@ -323,8 +323,8 @@ class NinjaBuildElement:
self.infilenames = [infilenames] self.infilenames = [infilenames]
else: else:
self.infilenames = infilenames self.infilenames = infilenames
self.deps = OrderedSet() self.deps = set()
self.orderdeps = OrderedSet() self.orderdeps = set()
self.elems = [] self.elems = []
self.all_outputs = all_outputs self.all_outputs = all_outputs
self.output_errors = '' self.output_errors = ''

Loading…
Cancel
Save