summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-03-08 21:39:01 +0800
committerxq114 <[email protected]>2022-03-08 21:39:01 +0800
commit40581640aac4b4ca2e7acb4254b07475c5cb9337 (patch)
treee47d5676dc30216ae5cd624aeb122fb4fb005b08
parent8189e699c432899ac6621ba31e00a05ce5d95cf1 (diff)
allow custom path to vswhere.exe
-rw-r--r--xmake/modules/detect/tools/find_vswhere.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_vswhere.lua b/xmake/modules/detect/tools/find_vswhere.lua
index af52c5a94..75efb6b6e 100644
--- a/xmake/modules/detect/tools/find_vswhere.lua
+++ b/xmake/modules/detect/tools/find_vswhere.lua
@@ -51,6 +51,7 @@ function main(opt)
opt.command = opt.command or "-?"
opt.paths = opt.paths or
{
+ "$(env VSINSTALLERDIR)",
"$(env ProgramFiles%(x86%))\\Microsoft Visual Studio\\Installer",
"$(env ProgramFiles)\\Microsoft Visual Studio\\Installer"
}