forked from qt-creator/qt-creator
MSVC: Increase timeout for environment detection
Surprisingly many users apparently do run into the timeout. Task-number: QTCREATORBUG-17474 Change-Id: I756a5164d52feee1e45bfebacbd45cc232628b79 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -287,7 +287,7 @@ bool AbstractMsvcToolChain::generateEnvironmentSettings(Utils::Environment &env,
|
|||||||
// if Creator is launched within a session set up by setenv.cmd.
|
// if Creator is launched within a session set up by setenv.cmd.
|
||||||
env.unset(QLatin1String("ORIGINALPATH"));
|
env.unset(QLatin1String("ORIGINALPATH"));
|
||||||
run.setEnvironment(env.toStringList());
|
run.setEnvironment(env.toStringList());
|
||||||
run.setTimeoutS(10);
|
run.setTimeoutS(30);
|
||||||
Utils::FileName cmdPath = Utils::FileName::fromUserInput(QString::fromLocal8Bit(qgetenv("COMSPEC")));
|
Utils::FileName cmdPath = Utils::FileName::fromUserInput(QString::fromLocal8Bit(qgetenv("COMSPEC")));
|
||||||
if (cmdPath.isEmpty())
|
if (cmdPath.isEmpty())
|
||||||
cmdPath = env.searchInPath(QLatin1String("cmd.exe"));
|
cmdPath = env.searchInPath(QLatin1String("cmd.exe"));
|
||||||
|
Reference in New Issue
Block a user