We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaab1b commit bbcc25cCopy full SHA for bbcc25c
tools/build_api.py
@@ -365,12 +365,18 @@ def transform_release_toolchains(target, version):
365
"""
366
if int(target.build_tools_metadata["version"]) > 0:
367
if version == '5':
368
+ non_arm_toolchains = set(["IAR", "GCC_ARM"])
369
if 'ARMC5' in target.supported_toolchains:
- return ['ARMC5', 'GCC_ARM', 'IAR']
370
+ result = ["ARMC5"]
371
else:
- return ['ARM', 'ARMC6', 'GCC_ARM', 'IAR']
372
- else:
373
- return target.supported_toolchains
+ result = ["ARM", "ARMC6"]
+ result.extend(
374
+ set(target.supported_toolchains).intersection(
375
+ non_arm_toolchains
376
+ )
377
378
+ return result
379
+ return target.supported_toolchains
380
381
382
return ['ARM', 'GCC_ARM', 'IAR']
0 commit comments