From ff103cd4816ca50102c3bc10906695581c734f60 Mon Sep 17 00:00:00 2001 From: ChanthMiao Date: Mon, 26 Aug 2019 20:38:16 +0800 Subject: fix error caused by the new vsDevCmd.bat of vs2019 A specific block of the new vsDevCmd.bat may cause system error. Use env var 'VSCMD_SKIP_SENDTELEMETRY' to skip it. Solution referrer: --- xmake/modules/detect/sdks/find_vstudio.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index 884fe2973..955aa7eec 100755 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -45,6 +45,7 @@ function _load_vcvarsall(vcvarsall, arch, vcvars_ver, sdkver) local genvcvars_dat = os.tmpfile() .. "_genvcvars.txt" local file = io.open(genvcvars_bat, "w") file:print("@echo off") + file:print("set VSCMD_SKIP_SENDTELEMETRY=yes") if vcvars_ver then file:print("call \"%s\" %s %s -vcvars_ver=%s > nul", vcvarsall, arch, sdkver and sdkver or "", vcvars_ver) else -- cgit v1.3.1