summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-02 00:56:39 +0800
committerruki <[email protected]>2020-04-01 23:39:55 +0800
commit21dbab6afaa0de6f0f9f43aa4c55ffc6e31a8657 (patch)
tree96825bd1a50e9748a39cfbb3a91109ae7d08cf8f
parente3b63b2f0103855c940fa8683610cd02895450d1 (diff)
fix find_vstudio
-rwxr-xr-xxmake/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 02c060433..a54a1a3b4 100755
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -203,7 +203,7 @@ function main(opt)
VCInstallDir
}
local vcvarsall = find_file("vcvarsall.bat", pathes) or find_file("vcvars32.bat", pathes)
- if os.isfile(vcvarsall) then
+ if vcvarsall and os.isfile(vcvarsall) then
-- load vcvarsall
local vcvarsall_x86 = _load_vcvarsall(vcvarsall, VisualStudioVersion, "x86", opt)