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 4747from  .targets  import  TARGET_NAMES , TARGET_MAP , CORE_ARCH , Target 
4848from  .libraries  import  Library 
4949from  .toolchains  import  TOOLCHAIN_CLASSES , TOOLCHAIN_PATHS 
50+ from  .toolchains .arm  import  ARMC5_MIGRATION_WARNING 
5051from  .toolchains .arm  import  UARM_TOOLCHAIN_WARNING 
5152from  .toolchains .mbed_toolchain  import  should_replace_small_c_lib 
5253from  .config  import  Config 
@@ -244,11 +245,9 @@ def find_valid_toolchain(target, toolchain):
244245            ).format (toolchain_name , search_path )
245246        else :            
246247            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 )
250249            if  (
251-                 toolchain_name  in  ["uARM" , "ARMC6" ] 
250+                 toolchain_name  in  ["uARM" , "ARMC5"  ,  " ARMC6" ] 
252251                and  "uARM"  in  {toolchain_name , target .default_toolchain }
253252            ):
254253                end_warnings .append (UARM_TOOLCHAIN_WARNING )
Original file line number Diff line number Diff line change 3232from  tools .utils  import  mkdir , NotSupportedException , run_cmd 
3333from  tools .resources  import  FileRef 
3434
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+ 
3542UARM_TOOLCHAIN_WARNING  =  (
3643    "Warning: We noticed that you are using uARM Toolchain either via --toolchain command line or default_toolchain option. " 
3744    "We are deprecating the use of the uARM Toolchain. " 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments