ProjectExplorer: Add support for LLVM/MinGW from the installer

Those are registered as mingw rather than clang.

Fixes: QTCREATORBUG-31156
Change-Id: If4e1d7ceecd9648f768680c92c4cde24c1255600
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2024-07-01 17:21:09 +02:00
parent 5e82334a25
commit a425a7dea1

View File

@@ -857,8 +857,11 @@ QStringList GccToolchain::suggestedMkspecList() const
return {QString("linux-icc-%1").arg(targetAbi().wordWidth())};
if (m_subType == MinGW) {
if (HostOsInfo::isWindowsHost())
if (HostOsInfo::isWindowsHost()) {
if (compilerCommand().fileName().contains("clang"))
return {"win32-clang-g++"};
return {"win32-g++"};
}
if (HostOsInfo::isLinuxHost()) {
if (version().startsWith("4.6."))
return {"win32-g++-4.6-cross", "unsupported/win32-g++-4.6-cross"};