summaryrefslogtreecommitdiff
path: root/tools/keil.py
diff options
context:
space:
mode:
authorwdfk-prog <[email protected]>2022-11-04 15:34:17 +0800
committerMan, Jianting (Meco) <[email protected]>2022-11-04 09:35:17 -0400
commit93bdf5ca0875237b18108429f59e92cb460a8b50 (patch)
treefb40549ee05463bf49c79ba9d97b80c9384ffe94 /tools/keil.py
parent20207fbcd4dc2fe5515b4f33e3a3820f5828c50f (diff)
[Tools] add armclangMDK) get version support
Diffstat (limited to 'tools/keil.py')
-rw-r--r--tools/keil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/keil.py b/tools/keil.py
index 35543136bb..0405eb0b1b 100644
--- a/tools/keil.py
+++ b/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