forked from qt-creator/qt-creator
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 <orgads@gmail.com>
This commit is contained in:
@@ -1022,9 +1022,8 @@ QList<ToolChain *> GccToolChainFactory::autoDetectToolchains(const QString &comp
|
|||||||
return result;
|
return result;
|
||||||
const FileName canonicalPath = FileUtils::canonicalPath(compilerPath);
|
const FileName canonicalPath = FileUtils::canonicalPath(compilerPath);
|
||||||
|
|
||||||
result = Utils::filtered(alreadyKnown, [requiredTypeId, canonicalPath](ToolChain *tc) {
|
result = Utils::filtered(alreadyKnown, [requiredTypeId, compilerPath](ToolChain *tc) {
|
||||||
return tc->typeId() == requiredTypeId
|
return tc->typeId() == requiredTypeId && tc->compilerCommand() == compilerPath;
|
||||||
&& FileUtils::canonicalPath(tc->compilerCommand()) == canonicalPath;
|
|
||||||
});
|
});
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
for (ToolChain *tc : result) {
|
for (ToolChain *tc : result) {
|
||||||
|
Reference in New Issue
Block a user