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_vswhere.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/detect/tools/find_vswhere.lua') diff --git a/xmake/modules/detect/tools/find_vswhere.lua b/xmake/modules/detect/tools/find_vswhere.lua index 75efb6b6e..7576ceda2 100644 --- a/xmake/modules/detect/tools/find_vswhere.lua +++ b/xmake/modules/detect/tools/find_vswhere.lua @@ -55,6 +55,7 @@ function main(opt) "$(env ProgramFiles%(x86%))\\Microsoft Visual Studio\\Installer", "$(env ProgramFiles)\\Microsoft Visual Studio\\Installer" } + opt.paths = table.wrap(opt.paths) local program = find_program(opt.program or "vswhere.exe", opt) -- find program version -- cgit v1.3.1