From 21dbab6afaa0de6f0f9f43aa4c55ffc6e31a8657 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Apr 2020 00:56:39 +0800 Subject: fix find_vstudio --- xmake/modules/detect/sdks/find_vstudio.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1