From 8ccaf071e47d4db7614d0ef69e67be5a979e7919 Mon Sep 17 00:00:00 2001 From: RimuruChan Date: Tue, 13 May 2025 04:16:10 +0800 Subject: Wrap opt.paths in a table for find tools --- xmake/modules/detect/tools/find_clang_format.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/detect/tools/find_clang_format.lua') diff --git a/xmake/modules/detect/tools/find_clang_format.lua b/xmake/modules/detect/tools/find_clang_format.lua index d378be16e..b1839ce50 100644 --- a/xmake/modules/detect/tools/find_clang_format.lua +++ b/xmake/modules/detect/tools/find_clang_format.lua @@ -41,7 +41,7 @@ function main(opt) if not program and is_host("macosx") then local llvm = try {function () return os.iorunv("brew", {"--prefix", "llvm"}) end} if llvm then - opt.paths = opt.paths or {} + opt.paths = table.wrap(opt.paths) opt.force = true table.insert(opt.paths, path.join(llvm:trim(), "bin")) program = find_program(opt.program or "clang-format", opt) -- cgit v1.3.1