Skip to content

Commit 7eb44cb

Browse files
author
Andrii Lishchynskyi
committed
Fix applying all possible setting
1 parent 1f16fec commit 7eb44cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/export/cdt/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def get_target_config(self, configuration):
4848
# Get target-specific options. Use labels to find alias
4949
# for target. This allows to define options within inheritance path
5050
target_specific = _CONFIGS_OPTIONS['targets']
51-
aliases = self.toolchain.target.labels
52-
for target_alias in aliases:
51+
for target_alias in self.toolchain.target.labels:
5352
if target_alias in target_specific:
5453
eclipse_config.update(target_specific[target_alias]['generic'])
5554
if configuration in target_specific[target_alias]:
5655
eclipse_config.update(target_specific[target_alias][configuration])
56+
break
5757

5858
return eclipse_config
5959

0 commit comments

Comments
 (0)