Clone of official tools
Diff: export/iar/__init__.py
- Revision:
- 40:7d3fa6b99b2b
- Parent:
- 38:399953da035d
- Child:
- 43:2a7da56ebd24
--- a/export/iar/__init__.py Wed Jul 19 16:44:30 2017 -0500 +++ b/export/iar/__init__.py Tue Oct 10 16:56:30 2017 -0500 @@ -30,15 +30,15 @@ with open(_iar_defs, 'r') as f: _GUI_OPTIONS = json.load(f) -_IAR_TARGETS = [target for target, obj in TARGET_MAP.iteritems() if - _supported(obj, _GUI_OPTIONS.keys())] - class IAR(Exporter): NAME = 'iar' TOOLCHAIN = 'IAR' - TARGETS = _IAR_TARGETS + @classmethod + def is_target_supported(cls, target_name): + target = TARGET_MAP[target_name] + return _supported(target, _GUI_OPTIONS.keys()) def iar_groups(self, grouped_src):