File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 47
47
from .targets import TARGET_NAMES , TARGET_MAP , CORE_ARCH , Target
48
48
from .libraries import Library
49
49
from .toolchains import TOOLCHAIN_CLASSES , TOOLCHAIN_PATHS
50
+ from .toolchains .arm import ARMC5_MIGRATION_WARNING
50
51
from .toolchains .arm import UARM_TOOLCHAIN_WARNING
51
52
from .toolchains .mbed_toolchain import should_replace_small_c_lib
52
53
from .config import Config
@@ -244,11 +245,9 @@ def find_valid_toolchain(target, toolchain):
244
245
).format (toolchain_name , search_path )
245
246
else :
246
247
if toolchain_name == "ARMC5" :
247
- raise NotSupportedException (
248
- "Arm Compiler 5 is no longer supported, please upgrade to Arm Compiler 6."
249
- )
248
+ end_warnings .append (ARMC5_MIGRATION_WARNING )
250
249
if (
251
- toolchain_name in ["uARM" , "ARMC6" ]
250
+ toolchain_name in ["uARM" , "ARMC5" , " ARMC6" ]
252
251
and "uARM" in {toolchain_name , target .default_toolchain }
253
252
):
254
253
end_warnings .append (UARM_TOOLCHAIN_WARNING )
Original file line number Diff line number Diff line change 32
32
from tools .utils import mkdir , NotSupportedException , run_cmd
33
33
from tools .resources import FileRef
34
34
35
+ ARMC5_MIGRATION_WARNING = (
36
+ "Warning: Arm Compiler 5 is no longer supported as of Mbed 6. "
37
+ "Please upgrade your environment to Arm Compiler 6 "
38
+ "which is free to use with Mbed OS. For more information, "
39
+ "please visit https://os.mbed.com/docs/mbed-os/latest/tools/index.html"
40
+ )
41
+
35
42
UARM_TOOLCHAIN_WARNING = (
36
43
"Warning: We noticed that you are using uARM Toolchain either via --toolchain command line or default_toolchain option. "
37
44
"We are deprecating the use of the uARM Toolchain. "
You can’t perform that action at this time.
0 commit comments