From 605b8e3e0bc87dc70c6baa209ddd32fa05f65657 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 22 Oct 2022 23:03:44 +0800 Subject: fix llvm-ar #2955 --- xmake/modules/detect/tools/find_llvm_ar.lua | 6 ++---- 1 file 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 -- cgit v1.3.1