File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,15 @@ def get_target_config(self, configuration):
45
45
if configuration in defaults :
46
46
eclipse_config .update (defaults [configuration ])
47
47
48
- # Get target-specific options. Use resolution order and extra labels
49
- # to find alias for target. This allows to define options within inheritance path
48
+ # Get target-specific options. Use labels to find alias
49
+ # for target. This allows to define options within inheritance path
50
50
target_specific = _CONFIGS_OPTIONS ['targets' ]
51
- aliases = self .toolchain .target .resolution_order_names \
52
- + self .toolchain .target .extra_labels
53
- target_alias = next ((t for t in aliases if t in target_specific ), None )
54
- if target_alias :
55
- eclipse_config .update (target_specific [target_alias ]['generic' ])
56
- if configuration in target_specific [target_alias ]:
57
- eclipse_config .update (target_specific [target_alias ][configuration ])
51
+ aliases = self .toolchain .target .labels
52
+ for target_alias in aliases :
53
+ if target_alias in target_specific :
54
+ eclipse_config .update (target_specific [target_alias ]['generic' ])
55
+ if configuration in target_specific [target_alias ]:
56
+ eclipse_config .update (target_specific [target_alias ][configuration ])
58
57
59
58
return eclipse_config
60
59
You can’t perform that action at this time.
0 commit comments