diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 41ec7c6b92b..89a172aae65 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -1964,7 +1964,8 @@ Toolchains MingwToolChainFactory::detectForImport(const ToolChainDescription &tc const QString fileName = tcd.compilerPath.completeBaseName(); const bool cCompiler = tcd.language == Constants::C_LANGUAGE_ID - && (fileName.startsWith("gcc") || fileName.endsWith("gcc")); + && ((fileName.startsWith("gcc") || fileName.endsWith("gcc")) + || fileName == "cc"); const bool cxxCompiler = tcd.language == Constants::CXX_LANGUAGE_ID && ((fileName.startsWith("g++") || fileName.endsWith("g++"))