diff options
| author | ruki <[email protected]> | 2022-10-22 23:03:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-22 23:03:44 +0800 |
| commit | 605b8e3e0bc87dc70c6baa209ddd32fa05f65657 (patch) | |
| tree | 794811a0da71ece94799beaf8730e4e09d62c2a4 | |
| parent | bb552511d15c94054ff80c6de7e9ee5672332666 (diff) | |
fix llvm-ar #2955
| -rw-r--r-- | xmake/modules/detect/tools/find_llvm_ar.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/modules/detect/tools/find_llvm_ar.lua b/xmake/modules/detect/tools/find_llvm_ar.lua index 011edd6c6..2c3c29d9c 100644 --- a/xmake/modules/detect/tools/find_llvm_ar.lua +++ b/xmake/modules/detect/tools/find_llvm_ar.lua @@ -40,8 +40,8 @@ function main(opt) -- init options opt = opt or {} - opt.check = opt.check or "-version" - opt.command = opt.command or "-version" + opt.check = opt.check or "-h" + opt.command = opt.command or "--version" -- find program local program = find_program(opt.program or "llvm-ar", opt) @@ -51,7 +51,5 @@ function main(opt) if program and opt.version then version = find_programver(program, opt) end - - -- ok? return program, version end |
