forked from qt-creator/qt-creator
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:
@@ -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++"))
|
||||
|
Reference in New Issue
Block a user