summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_clang_scan_deps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/find_clang_scan_deps.lua')
-rw-r--r--xmake/modules/detect/tools/find_clang_scan_deps.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_clang_scan_deps.lua b/xmake/modules/detect/tools/find_clang_scan_deps.lua
index f4b9cd87b..eae1ace5d 100644
--- a/xmake/modules/detect/tools/find_clang_scan_deps.lua
+++ b/xmake/modules/detect/tools/find_clang_scan_deps.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-scan-deps", opt)