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;
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user