Commit acf908fc authored by Tobias Hunger's avatar Tobias Hunger

GccToolChains: Do not change language based on canonicalPath

Do not change the language of a compiler based on the canonical
path. This breaks ccache and similar things:-)

Change-Id: I790d630ec493d867df45d24f80e8927ba3189476
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 1acf748f
......@@ -1022,9 +1022,8 @@ QList<ToolChain *> GccToolChainFactory::autoDetectToolchains(const QString &comp
return result;
const FileName canonicalPath = FileUtils::canonicalPath(compilerPath);
result = Utils::filtered(alreadyKnown, [requiredTypeId, canonicalPath](ToolChain *tc) {
return tc->typeId() == requiredTypeId
&& FileUtils::canonicalPath(tc->compilerCommand()) == canonicalPath;
result = Utils::filtered(alreadyKnown, [requiredTypeId, compilerPath](ToolChain *tc) {
return tc->typeId() == requiredTypeId && tc->compilerCommand() == compilerPath;
});
if (!result.isEmpty()) {
for (ToolChain *tc : result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment