File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -364,13 +364,16 @@ def transform_release_toolchains(target, version):
364
364
RELEASE_VERSIONS
365
365
"""
366
366
if int (target .build_tools_metadata ["version" ]) > 0 :
367
- if version == '5' :
368
- if 'ARMC5' in target .supported_toolchains :
369
- return ['ARMC5' , 'GCC_ARM' , 'IAR' ]
370
- else :
371
- return ['ARM' , 'ARMC6' , 'GCC_ARM' , 'IAR' ]
372
- else :
373
- return target .supported_toolchains
367
+ if version == '5' and 'ARM' in target .supported_toolchains :
368
+ non_arm_toolchains = set (["IAR" , "GCC_ARM" ])
369
+ result = ["ARMC5" , "ARMC6" ]
370
+ result .extend (
371
+ set (target .supported_toolchains ).intersection (
372
+ non_arm_toolchains
373
+ )
374
+ )
375
+ return result
376
+ return target .supported_toolchains
374
377
else :
375
378
if version == '5' :
376
379
return ['ARM' , 'GCC_ARM' , 'IAR' ]
You can’t perform that action at this time.
0 commit comments