Skip to content

Commit 4198ae6

Browse files
theotherjimmyCruz Monrreal II
authored andcommitted
Tools: Restrict toolchains reported by mbed compile -S to official ones
### Description The `mbed compile -S` command is suposed to indicate what targets support what toolchains. The command was printing out things that don't make sense, like `GCC_CR` and things that make sense, but are not offiially supported yet, like `ARMC6`. This PR fixes all of that. ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Breaking change
1 parent 8a5b9ff commit 4198ae6

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tools/build_api.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,20 +1072,7 @@ def get_unique_supported_toolchains(release_targets=None):
10721072
If release_targets is not specified, then it queries all
10731073
known targets
10741074
"""
1075-
unique_supported_toolchains = []
1076-
1077-
if not release_targets:
1078-
for target in TARGET_NAMES:
1079-
for toolchain in TARGET_MAP[target].supported_toolchains:
1080-
if toolchain not in unique_supported_toolchains:
1081-
unique_supported_toolchains.append(toolchain)
1082-
else:
1083-
for target in release_targets:
1084-
for toolchain in target[1]:
1085-
if toolchain not in unique_supported_toolchains:
1086-
unique_supported_toolchains.append(toolchain)
1087-
1088-
return unique_supported_toolchains
1075+
return ["ARM", "uARM", "GCC_ARM", "IAR"]
10891076

10901077

10911078
def _lowercase_release_version(release_version):

0 commit comments

Comments
 (0)