From 58d1efb5b25c0cbb79e00fa480494bf29296d40e Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 6 Nov 2024 14:22:20 +0100 Subject: [PATCH] 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 Signed-off-by: Eli Schwartz --- mesonbuild/backend/ninjabackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index e0721145b..05d532079 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -323,8 +323,8 @@ class NinjaBuildElement: self.infilenames = [infilenames] else: self.infilenames = infilenames - self.deps = OrderedSet() - self.orderdeps = OrderedSet() + self.deps = set() + self.orderdeps = set() self.elems = [] self.all_outputs = all_outputs self.output_errors = ''