Skip to content

Commit b006144

Browse files
committed
ARMC5 is supported if a target lists ARM as a supported_toolchain
1 parent 6a12b1c commit b006144

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/build_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ def target_supports_toolchain(target, toolchain_name):
419419
if(toolchain_name == "ARM"):
420420
#we cant find ARM, see if one ARMC5, ARMC6 or uARM listed
421421
return any(tc in target.supported_toolchains for tc in ("ARMC5","ARMC6","uARM"))
422-
if(toolchain_name == "ARMC6"):
423-
#we did not find ARMC6, but check for ARM is listed
422+
if(toolchain_name == "ARMC6" or toolchain_name == "ARMC5"):
423+
#we did not find ARMC6 or ARMC5, but check if ARM is listed
424424
return "ARM" in target.supported_toolchains
425425
#return False in other cases
426426
return False

tools/toolchains/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def __init__(
367367
if int(target.build_tools_metadata["version"]) > 0:
368368
#check only for ARMC5 because ARM_STD means using ARMC5, and thus
369369
# supported_toolchains must include ARMC5
370-
if "ARMC5" not in target.supported_toolchains:
370+
if not set(target.supported_toolchains).intersection(set(("ARMC5", "ARM"))):
371371
raise NotSupportedException(
372372
"ARM compiler 5 support is required for ARM build"
373373
)

0 commit comments

Comments
 (0)