forked from qt-creator/qt-creator
Process: Get rid of setTimeoutS()
Add an extra arg to runBlocking() function instead. Use std::chrono::seconds for timeout. Change-Id: I7c3c21e8f26a2ccbed157d15083d6ef0b4cd2f7e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -169,13 +169,12 @@ bool CMakeTool::isValid(bool ignoreCache) const
|
||||
void CMakeTool::runCMake(Process &cmake, const QStringList &args, int timeoutS) const
|
||||
{
|
||||
const FilePath executable = cmakeExecutable();
|
||||
cmake.setTimeoutS(timeoutS);
|
||||
cmake.setDisableUnixTerminal();
|
||||
Environment env = executable.deviceEnvironment();
|
||||
env.setupEnglishOutput();
|
||||
cmake.setEnvironment(env);
|
||||
cmake.setCommand({executable, args});
|
||||
cmake.runBlocking();
|
||||
cmake.runBlocking(std::chrono::seconds(timeoutS));
|
||||
}
|
||||
|
||||
Store CMakeTool::toMap() const
|
||||
|
||||
Reference in New Issue
Block a user