diff options
| author | ruki <[email protected]> | 2019-08-26 20:43:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 20:43:27 +0800 |
| commit | 35fea5038c5fd60cf25c7494db531ea1a7a7bfe1 (patch) | |
| tree | 26740dba93b48af47bf9ec5257de64ff78c2a144 | |
| parent | f9fcf32c39743f6df0766ab2de2bdac4ed8948e7 (diff) | |
| parent | ff103cd4816ca50102c3bc10906695581c734f60 (diff) | |
Merge pull request #551 from ChanthMiao/patch-1
fix error caused by the new vsDevCmd.bat of vs2019
| -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 |
