mirror of https://github.com/ARMmbed/mbed-os.git
Refactor condition check
parent
816516e23c
commit
f5230cd70c
|
@ -244,10 +244,7 @@ def find_valid_toolchain(target, toolchain):
|
|||
if toolchain_name in ["uARM", "ARMC5", "ARMC6"]:
|
||||
if toolchain_name == "ARMC5":
|
||||
end_warnings.append(ARMC5_MIGRATION_WARNING)
|
||||
if (
|
||||
toolchain_name == "uARM"
|
||||
or target.default_toolchain == "uARM"
|
||||
):
|
||||
if "uARM" in {toolchain_name, target.default_toolchain}:
|
||||
end_warnings.append(UARM_TOOLCHAIN_WARNING)
|
||||
return toolchain_name, internal_tc_name, end_warnings
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue