Skip to content

Commit 2d38065

Browse files
committed
[build tools] Added support for completely overriding cumulative attributes
1 parent 36904fa commit 2d38065

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ def _process_config_and_overrides(self, data, params, unit_name, unit_kind):
226226
for attr in Target._Target__cumulative_attributes:
227227
attrs = getattr(self.target_instance, attr)
228228

229+
if attr in overrides:
230+
del attrs[:]
231+
attrs.extend(overrides[attr])
232+
del overrides[attr]
233+
229234
if attr+'_add' in overrides:
230235
attrs.extend(overrides[attr+'_add'])
231236
del overrides[attr+'_add']

0 commit comments

Comments
 (0)