diff options
| author | ChanthMiao <[email protected]> | 2019-08-26 20:38:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 20:38:16 +0800 |
| commit | ff103cd4816ca50102c3bc10906695581c734f60 (patch) | |
| tree | 26740dba93b48af47bf9ec5257de64ff78c2a144 | |
| parent | f9fcf32c39743f6df0766ab2de2bdac4ed8948e7 (diff) | |
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: <https://developercommunity.visualstudio.com/content/problem/694847/vsdevcmdbat-developer-prompt-causes-the-input-line.html>
| -rwxr-xr-x | xmake/modules/detect/sdks/find_vstudio.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
