File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -234,17 +234,20 @@ def find_valid_toolchain(target, toolchain):
234
234
last_error = None
235
235
for index , toolchain_name in enumerate (toolchain_names ):
236
236
internal_tc_name = get_toolchain_name (target , toolchain_name )
237
- if toolchain == "ARM" and toolchain_name == "ARMC5" and index != 0 :
238
- end_warnings .append (ARMC5_MIGRATION_WARNING )
239
237
if not TOOLCHAIN_CLASSES [internal_tc_name ].check_executable ():
240
238
search_path = TOOLCHAIN_PATHS [internal_tc_name ] or "No path set"
241
239
last_error = (
242
240
"Could not find executable for {}.\n "
243
241
"Currently set search path: {}"
244
242
).format (toolchain_name , search_path )
245
- else :
246
- if toolchain_name == "uARM" or target .default_toolchain == "uARM" :
247
- end_warnings .append (UARM_TOOLCHAIN_WARNING )
243
+ else :
244
+ if toolchain_name == "ARMC5" :
245
+ end_warnings .append (ARMC5_MIGRATION_WARNING )
246
+ if (
247
+ toolchain_name in ["uARM" , "ARMC5" , "ARMC6" ]
248
+ and "uARM" in {toolchain_name , target .default_toolchain }
249
+ ):
250
+ end_warnings .append (UARM_TOOLCHAIN_WARNING )
248
251
return toolchain_name , internal_tc_name , end_warnings
249
252
else :
250
253
if last_error :
Original file line number Diff line number Diff line change 38
38
)
39
39
40
40
UARM_TOOLCHAIN_WARNING = (
41
- "Warning: We noticed that you are using uARM Toolchain. "
42
- "We are deprecating the use of uARM Toolchain. "
41
+ "Warning: We noticed that you are using uARM Toolchain either via --toolchain command line or default_toolchain option . "
42
+ "We are deprecating the use of the uARM Toolchain. "
43
43
"For more information on how to use the ARM toolchain with small C libraries, "
44
44
"please visit https://os.mbed.com/docs/mbed-os/latest/reference/using-small-c-libraries.html"
45
45
)
You can’t perform that action at this time.
0 commit comments