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):
3939 def TARGETS (cls ):
4040 if not hasattr (cls , "_targets_supported" ):
4141 cls ._targets_supported = []
42+ progendef = ProGenDef ('iar' )
4243 for target in TARGET_NAMES :
4344 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' ])):
4647 cls ._targets_supported .append (target )
4748 except AttributeError :
4849 # target is not supported yet
Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ class Uvision4(Exporter):
3939 def TARGETS (cls ):
4040 if not hasattr (cls , "_targets_supported" ):
4141 cls ._targets_supported = []
42+ progendef = ProGenDef ('uvision' )
4243 for target in TARGET_NAMES :
4344 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' ])):
4647 cls ._targets_supported .append (target )
4748 except AttributeError :
4849 # target is not supported yet
Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ class Uvision5(Exporter):
3939 def TARGETS (cls ):
4040 if not hasattr (cls , "_targets_supported" ):
4141 cls ._targets_supported = []
42+ progendef = ProGenDef ('uvision5' )
4243 for target in TARGET_NAMES :
4344 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' ])):
4647 cls ._targets_supported .append (target )
4748 except AttributeError :
4849 # target is not supported yet
You can’t perform that action at this time.
0 commit comments