summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorcofecofe <[email protected]>2024-06-23 23:16:43 +0800
committercofecofe <[email protected]>2024-06-23 23:16:43 +0800
commitfa31b585a779625eb70954b37aac7bb7df4a5518 (patch)
tree6d35b0ea1b95bae2a8e4b9ca2bc7f76dacaae3a3 /xmake/modules/detect
parent872ddbd0ce9e645a079e1bef02dc2d3424ad4879 (diff)
Add armclang version judgement, and according to the results of the selection of different assembler
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/sdks/find_mdk.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_mdk.lua b/xmake/modules/detect/sdks/find_mdk.lua
index a2af360f1..231b3cf4d 100644
--- a/xmake/modules/detect/sdks/find_mdk.lua
+++ b/xmake/modules/detect/sdks/find_mdk.lua
@@ -73,6 +73,8 @@ function _find_mdk(sdkdir)
-- armclang sdk directory
local sdkdir_armclang = path.join(sdkdir, "armclang")
if os.isdir(sdkdir_armclang) and os.isfile(path.join(sdkdir_armclang, "bin", "armclang.exe")) then
+ local sdk_armclang_ver = os.iorun(path.join(sdkdir_armclang, "bin", "armclang.exe").." --version_number")
+ result.sdk_armclang_vernum = tonumber(sdk_armclang_ver)
result.sdkdir_armclang = sdkdir_armclang
end
return result