summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-08 23:21:00 +0800
committerruki <[email protected]>2017-03-08 23:21:00 +0800
commita4651e6b7092b281ffc25ac4a9f7c66115e8219a (patch)
tree8e41f02c1f52d743c19db8d0e66f1966dc42e027
parente12844ba29d403b2c805efc05d2f1dd00471220c (diff)
modify check order for vs programdir
-rw-r--r--xmake/platforms/windows/check.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua
index 9d0955539..c1f335aba 100644
--- a/xmake/platforms/windows/check.lua
+++ b/xmake/platforms/windows/check.lua
@@ -63,7 +63,7 @@ function _apply_vsenv(config, vs)
if vcvarsall == nil or not os.isfile(vcvarsall) then
vcvarsall = nil
for _, driver in ipairs({'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'X', 'Y', 'Z'}) do
- for _, programdir in ipairs({"Program Files", "Program Files (x86)"}) do
+ for _, programdir in ipairs({"Program Files (x86)", "Program Files"}) do
for _, kind in ipairs({"Community", "Professional", "Enterprise"}) do
local filepath = format("%s:\\%s\\Microsoft Visual Studio\\%s\\%s\\VC\\Auxiliary\\Build\\vcvarsall.bat", driver, programdir, vs, kind)
if os.isfile(filepath) then