소스 검색

[Tools] add armclangMDK) get version support

wdfk-prog 2 년 전
부모
커밋
93bdf5ca08
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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