CMake: Do not try to use icecream for cmake configuration runs

Task-number: QTCREATORBUG-21003
Change-Id: I166fdf2e540238d9ddd8694a0a7ad65e238e3331
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Tobias Hunger
2018-08-30 09:48:33 +02:00
parent bfc76b4cd8
commit a1ba378d8c

View File

@@ -34,6 +34,8 @@
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h>
#include <utils/hostosinfo.h>
using namespace ProjectExplorer;
namespace CMakeProjectManager {
@@ -53,6 +55,11 @@ BuildDirParameters::BuildDirParameters(CMakeBuildConfiguration *bc)
buildDirectory = bc->buildDirectory();
environment = bc->environment();
// Disable distributed building for configuration runs. CMake does not do those in parallel,
// so there is no win in sending data over the network.
// Unfortunately distcc does not have a simple environment flag to turn it off:-/
if (Utils::HostOsInfo::isAnyUnixHost())
environment.set("ICECC", "no");
cmakeToolId = CMakeKitInformation::cmakeToolId(k);