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:
Tobias Hunger
2014-07-21 14:23:09 +02:00
parent 04a9422b48
commit 6175c16a6d
6 changed files with 24 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ void IosConfigurations::updateAutomaticKitList()
toolchain->setDisplayName(displayName);
toolchain->setPlatformCodeGenFlags(p.backendFlags);
toolchain->setPlatformLinkerFlags(p.backendFlags);
toolchain->setCompilerCommand(p.compilerPath);
toolchain->resetToolChain(p.compilerPath);
if (p.architecture == QLatin1String("i386")) {
qCDebug(kitSetupLog) << "setting toolchain Abi for " << toolchain->displayName();
toolchain->setTargetAbi(Abi(Abi::X86Architecture,Abi::MacOS, Abi::GenericMacFlavor,