diff options
| author | cofecofe <[email protected]> | 2024-06-24 15:31:54 +0800 |
|---|---|---|
| committer | cofecofe <[email protected]> | 2024-06-24 15:31:54 +0800 |
| commit | 325cc705e90699ae827bdcb0f48c2e596900b86c (patch) | |
| tree | e14e8d73aded1d2932ad07bb7fc7ca3da80bf1fc /xmake/modules/detect/tools | |
| parent | fa31b585a779625eb70954b37aac7bb7df4a5518 (diff) | |
change different module to get compiler version.
Diffstat (limited to 'xmake/modules/detect/tools')
| -rw-r--r-- | xmake/modules/detect/tools/find_armclang.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_armclang.lua b/xmake/modules/detect/tools/find_armclang.lua index ed6b0bbfe..6232138c9 100644 --- a/xmake/modules/detect/tools/find_armclang.lua +++ b/xmake/modules/detect/tools/find_armclang.lua @@ -39,7 +39,9 @@ import("detect.sdks.find_mdk") function main(opt) -- init options - opt = opt or {} + opt = opt or {} + opt.command = opt.command or "--version" + opt.parse = opt.parse or function (output) return output:match("Arm Compiler for Embedded (%d+%.?%d+%.?%d+)%s") end -- find program local program = find_program(opt.program or "armclang.exe", opt) |
