File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -419,8 +419,8 @@ def target_supports_toolchain(target, toolchain_name):
419
419
if (toolchain_name == "ARM" ):
420
420
#we cant find ARM, see if one ARMC5, ARMC6 or uARM listed
421
421
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
424
424
return "ARM" in target .supported_toolchains
425
425
#return False in other cases
426
426
return False
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def __init__(
400
400
if int (target .build_tools_metadata ["version" ]) > 0 :
401
401
#check only for ARMC5 because ARM_STD means using ARMC5, and thus
402
402
# supported_toolchains must include ARMC5
403
- if "ARMC5" not in target .supported_toolchains :
403
+ if not set ( target .supported_toolchains ). intersection ( set (( "ARMC5" , "ARM" ))) :
404
404
raise NotSupportedException (
405
405
"ARM compiler 5 support is required for ARM build"
406
406
)
You can’t perform that action at this time.
0 commit comments