sourceset module: fix minor regression in making sourcesets immutable

In commit c0be7e05b0 the setting of merged
sourcesets as immutable in a loop accidentally got dedented, and only
applied to the last loop iteration.
pull/10038/head
Eli Schwartz 3 years ago
parent 008b1cef50
commit 880d5000b2
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/modules/sourceset.py

@ -186,7 +186,7 @@ class SourceSetImpl(SourceSet, MutableModuleObject):
for s in if_true:
if not isinstance(s, SourceSetImpl):
raise InvalidCode('Arguments to \'add_all\' after the first must be source sets')
s.frozen = True
s.frozen = True
self.rules.append(SourceSetRule(keys, [], [], if_true, dependencies))
def collect(self, enabled_fn: T.Callable[[str], bool],

Loading…
Cancel
Save