summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-06 22:53:28 +0800
committerruki <[email protected]>2025-05-06 22:53:28 +0800
commit9fa95319d2701e0cbf983f14549a29c26dc68498 (patch)
treeb829f6ef3ed7a1d832bf077cd53a1f4d37b5299c
parent3d3f6c31745a141a83b19c2648a9d7759bfdc199 (diff)
fix #6393
-rw-r--r--xmake/modules/detect/tools/find_rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_rc.lua b/xmake/modules/detect/tools/find_rc.lua
index 08db8fb87..77f66a451 100644
--- a/xmake/modules/detect/tools/find_rc.lua
+++ b/xmake/modules/detect/tools/find_rc.lua
@@ -63,7 +63,7 @@ function main(opt)
local arch = toolchain and toolchain:arch() or config.arch()
local bindir = path.join(envs.WindowsSdkDir, "bin", envs.WindowsSDKVersion, arch)
if os.isdir(bindir) then
- opt.paths = opt.paths or {}
+ opt.paths = table.wrap(opt.paths)
table.insert(opt.paths, bindir)
end
end