diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 884412f5b5f..bdce4800105 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -1196,8 +1196,8 @@ Toolchains GccToolChainFactory::autoDetectToolchains( && HostOsInfo::isWindowsHost() && !existingCommand.needsDevice() && !compilerPath.needsDevice()) { - existingTcMatches = existingCommand.toFileInfo().size() - == compilerPath.toFileInfo().size(); + existingTcMatches = existingCommand.fileSize() + == compilerPath.fileSize(); } } if (existingTcMatches) {