diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 912d7d53812..24ff830d5c6 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -967,7 +967,8 @@ QList GccToolChainFactory::autoDetectToolchains( } else { existingTcMatches = Environment::systemEnvironment().isSameExecutable( existingCommand.toString(), compilerPath.toString()) - || existingCommand.toFileInfo().size() == compilerPath.toFileInfo().size(); + || (HostOsInfo::isWindowsHost() && existingCommand.toFileInfo().size() + == compilerPath.toFileInfo().size()); } if (existingTcMatches) { if (!result.contains(existingTc))