File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ class IAREmbeddedWorkbench(Exporter):
39
39
def TARGETS (cls ):
40
40
if not hasattr (cls , "_targets_supported" ):
41
41
cls ._targets_supported = []
42
+ progendef = ProGenDef ('iar' )
42
43
for target in TARGET_NAMES :
43
44
try :
44
- if (ProGenDef ( 'iar' ) .is_supported (str (TARGET_MAP [target ])) or
45
- ProGenDef ( 'iar' ) .is_supported (TARGET_MAP [target ].progen ['target' ])):
45
+ if (progendef .is_supported (str (TARGET_MAP [target ])) or
46
+ progendef .is_supported (TARGET_MAP [target ].progen ['target' ])):
46
47
cls ._targets_supported .append (target )
47
48
except AttributeError :
48
49
# target is not supported yet
Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ class Uvision4(Exporter):
39
39
def TARGETS (cls ):
40
40
if not hasattr (cls , "_targets_supported" ):
41
41
cls ._targets_supported = []
42
+ progendef = ProGenDef ('uvision' )
42
43
for target in TARGET_NAMES :
43
44
try :
44
- if (ProGenDef ( 'uvision' ) .is_supported (str (TARGET_MAP [target ])) or
45
- ProGenDef ( 'uvision' ) .is_supported (TARGET_MAP [target ].progen ['target' ])):
45
+ if (progendef .is_supported (str (TARGET_MAP [target ])) or
46
+ progendef .is_supported (TARGET_MAP [target ].progen ['target' ])):
46
47
cls ._targets_supported .append (target )
47
48
except AttributeError :
48
49
# target is not supported yet
Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ class Uvision5(Exporter):
39
39
def TARGETS (cls ):
40
40
if not hasattr (cls , "_targets_supported" ):
41
41
cls ._targets_supported = []
42
+ progendef = ProGenDef ('uvision5' )
42
43
for target in TARGET_NAMES :
43
44
try :
44
- if (ProGenDef ( 'uvision5' ) .is_supported (str (TARGET_MAP [target ])) or
45
- ProGenDef ( 'uvision5' ) .is_supported (TARGET_MAP [target ].progen ['target' ])):
45
+ if (progendef .is_supported (str (TARGET_MAP [target ])) or
46
+ progendef .is_supported (TARGET_MAP [target ].progen ['target' ])):
46
47
cls ._targets_supported .append (target )
47
48
except AttributeError :
48
49
# target is not supported yet
You can’t perform that action at this time.
0 commit comments