summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-05-26 00:45:21 +0800
committerruki <[email protected]>2023-05-26 00:45:21 +0800
commit3bc1882be93ab58f774322b74d19d2fe92bd09e5 (patch)
treec12edccfc887269d40a02000598e752d9a4fffef
parent2871a4322bc0c5916a48edccb9248cf65ae73c32 (diff)
improve to find vstudio
-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 d3ff7fd7a..ee06019eb 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -286,7 +286,7 @@ function _find_vstudio(opt)
table.insert(paths, format("$(env %s)\\..\\..\\VC", vsenvs[version]))
end
if vswhere_VCAuxiliaryBuildDir and os.isdir(vswhere_VCAuxiliaryBuildDir) then
- table.insert(paths, vswhere_VCAuxiliaryBuildDir)
+ table.insert(paths, 1, vswhere_VCAuxiliaryBuildDir)
end
-- find vcvarsall.bat, vcvars32.bat for vs7.1