ProjectExplorer: Allow "cc" for MinGW imported compiler

Amends 152c01bd86 which added "c++"
as a C++ compiler.

Change-Id: I8ad77a488b74dce6170ebf824b7f372083847a2c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Cristian Adam
2022-10-19 23:27:04 +02:00
parent b4c3431768
commit d643ad80cb

View File

@@ -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++"))