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 @@ -367,7 +367,7 @@ def __init__(
367
367
if int (target .build_tools_metadata ["version" ]) > 0 :
368
368
#check only for ARMC5 because ARM_STD means using ARMC5, and thus
369
369
# supported_toolchains must include ARMC5
370
- if "ARMC5" not in target .supported_toolchains :
370
+ if not set ( target .supported_toolchains ). intersection ( set (( "ARMC5" , "ARM" ))) :
371
371
raise NotSupportedException (
372
372
"ARM compiler 5 support is required for ARM build"
373
373
)
You can’t perform that action at this time.
0 commit comments