Browse Source

[Tools] add armclangMDK) get version support

wdfk-prog 2 years ago
parent
commit
93bdf5ca08
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tools/keil.py

+ 4 - 1
tools/keil.py

@@ -425,7 +425,10 @@ def ARMCC_Version():
     import re
 
     path = rtconfig.EXEC_PATH
-    path = os.path.join(path, 'armcc.exe')
+    if(rtconfig.PLATFORM == 'armcc'):
+        path = os.path.join(path, 'armcc.exe')
+    elif(rtconfig.PLATFORM == 'armclang'):
+        path = os.path.join(path, 'armlink.exe')
 
     if os.path.exists(path):
         cmd = path