diff options
| author | ruki <[email protected]> | 2025-05-17 22:08:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-17 22:08:31 +0800 |
| commit | 2f8decdc353f4e18de953c074ae8fed1c0969cda (patch) | |
| tree | 48c8fc85958094ba81f635e6dcaf59f351e88374 /xmake/modules/detect/tools/find_clang_tidy.lua | |
| parent | bfef847fcd6f6745b52a9f3c2ab2870dcaf23d16 (diff) | |
| parent | 2b88ba37fa0a9957b8ab24cf1bf6da59e2c39f21 (diff) | |
Merge branch 'dev' into unitybuildunitybuild
Diffstat (limited to 'xmake/modules/detect/tools/find_clang_tidy.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_clang_tidy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_clang_tidy.lua b/xmake/modules/detect/tools/find_clang_tidy.lua index 0ca6dc0d2..ffa4d5c3b 100644 --- a/xmake/modules/detect/tools/find_clang_tidy.lua +++ b/xmake/modules/detect/tools/find_clang_tidy.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-tidy", opt) |
