ProjectExplorer: Skip clink autorun for msvc detection

Clink checks the CLINK_NOAUTORUN environment variable, and if it's set
it does a quick exit and the msvc detection is faster.

See https://github.com/chrisant996/clink/issues/361

Task-number: QTCREATORBUG-27906
Change-Id: Ib2cbc29a6135e5a1eb7411e4353cc1df8ef59004
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Cristian Adam
2022-10-13 18:54:05 +02:00
parent 9335f67307
commit 6fc313013e

View File

@@ -2094,6 +2094,7 @@ std::optional<QString> MsvcToolChain::generateEnvironmentSettings(const Utils::E
if (Utils::HostOsInfo::isWindowsHost())
saver.write("chcp 65001\r\n");
saver.write("set VSCMD_SKIP_SENDTELEMETRY=1\r\n");
saver.write("set CLINK_NOAUTORUN=1\r\n");
saver.write(call + "\r\n");
saver.write("@echo " + marker.toLocal8Bit() + "\r\n");
saver.write("set\r\n");