forked from qt-creator/qt-creator
ToolChain: Do not run compiler when setting up a toolchain
Do not rerun the compiler when setting up a new tool chain. All the necessary data is already there, so there is no need to re-get it. This reduces the number of gcc runs at startup from 10 to 6 in my settup (g++ and clang available on Linux). Change-Id: Id02e79f52ab7a69d5edf84b711ab148d7bc43f21 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -242,7 +242,7 @@ void QnxToolChainConfigWidget::applyImpl()
|
||||
QnxToolChain *tc = static_cast<QnxToolChain *>(toolChain());
|
||||
Q_ASSERT(tc);
|
||||
QString displayName = tc->displayName();
|
||||
tc->setCompilerCommand(m_compilerCommand->fileName());
|
||||
tc->resetToolChain(m_compilerCommand->fileName());
|
||||
tc->setDisplayName(displayName); // reset display name
|
||||
tc->setNdkPath(m_ndkPath->fileName().toString());
|
||||
tc->setTargetAbi(m_abiWidget->currentAbi());
|
||||
|
||||
Reference in New Issue
Block a user