summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-30 09:00:52 +0800
committerGitHub <[email protected]>2021-06-30 09:00:52 +0800
commit5057c521f63f58ba2ebef7ef315b0adfc122f28c (patch)
tree10a84ddb9e0cd1edb9b471b3122d8a31bede81ea
parent2e9219f0892b88bbe4bbcc1907385b71fca58024 (diff)
parent0036b83fba1607622223d5015088c441f87a0edd (diff)
Merge pull request #1476 from yecate/dev
improve support vs2022 preview
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index ba268e5b6..362a2a705 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -254,7 +254,7 @@ function main(opt)
local vswhere_VCAuxiliaryBuildDir = nil
if (tonumber(version) >= 15) and vswhere then
local vswhere_vrange = format("%s,%s)", version, (version + 1))
- local result = os.iorunv(vswhere.program, {"-property", "installationpath", "-version", vswhere_vrange})
+ local result = os.iorunv(vswhere.program, {"-prerelease", "-property", "installationpath", "-version", vswhere_vrange})
if result then
vswhere_VCAuxiliaryBuildDir = path.join(result:trim(), "VC", "Auxiliary", "Build")
end