aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs-setup-toolchains/probe.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-30 15:24:40 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-07-30 16:45:41 +0200
commitc598241085cd191c3914a4b614f219e7a9a55bbf (patch)
tree2c8a8a137b016ad8a4f56733f8340d32e4369106 /src/app/qbs-setup-toolchains/probe.cpp
parent1bd32fa94ca6a5de1adea87b0dce2a3ed6cfff15 (diff)
fix setup of cpp.compilerPathByLanguage
The existence of the correct compiler binaries was checked, but the compilerPathByLanguage map was never updated. It always contained the initial strings "gcc", "g++" and so on. Change-Id: Ied9e164af0fd102b2a061665921f51f96ca9eb80 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/app/qbs-setup-toolchains/probe.cpp')
-rw-r--r--src/app/qbs-setup-toolchains/probe.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/qbs-setup-toolchains/probe.cpp b/src/app/qbs-setup-toolchains/probe.cpp
index d701ab863..134c9077d 100644
--- a/src/app/qbs-setup-toolchains/probe.cpp
+++ b/src/app/qbs-setup-toolchains/probe.cpp
@@ -135,6 +135,7 @@ static void setupCompilerPathByLanguage(Profile &profile, const QStringList &too
const QString filePath = HostOsInfo::appendExecutableSuffix(toolchainPathPrefix
+ it.value().toString());
if (QFile::exists(filePath)) {
+ it.value() = filePath;
++it;
continue;
}