diff options
| -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 |
