forked from qt-creator/qt-creator
ProjectExplorer: Prevent telemetry collection by VS command-line tools
Apparently, recent Visual Studio installations try to collect temeletry information via powershell in vsdevcmd.bat, which interferes with our toolchain setup process. Turn this behavior off. Task-number: QTCREATORBUG-20886 Change-Id: Ia81652fc721119980da980c043991df27f10a10f Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
@@ -2053,6 +2053,7 @@ Utils::optional<QString> MsvcToolChain::generateEnvironmentSettings(const Utils:
|
|||||||
}
|
}
|
||||||
if (Utils::HostOsInfo::isWindowsHost())
|
if (Utils::HostOsInfo::isWindowsHost())
|
||||||
saver.write("chcp 65001\r\n");
|
saver.write("chcp 65001\r\n");
|
||||||
|
saver.write("set VSCMD_SKIP_SENDTELEMETRY=1\r\n");
|
||||||
saver.write(call + "\r\n");
|
saver.write(call + "\r\n");
|
||||||
saver.write("@echo " + marker.toLocal8Bit() + "\r\n");
|
saver.write("@echo " + marker.toLocal8Bit() + "\r\n");
|
||||||
saver.write("set\r\n");
|
saver.write("set\r\n");
|
||||||
|
Reference in New Issue
Block a user