forked from qt-creator/qt-creator
McuSupport: Update library path for Windows platform
The Qt shared library for Windows desktop platform has been moved from Qul 2.3.0 to support MinGW toolchain. The updated library path needs to be configured correctly. Task-number: QTCREATORBUG-28303 Change-Id: I7cf8150bfb4a66731904ea49089849496305f22e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -61,6 +61,26 @@ bool McuTarget::isValid() const
|
||||
});
|
||||
}
|
||||
|
||||
QString McuTarget::desktopCompilerId() const
|
||||
{
|
||||
// MinGW shares CMake configuration with GCC
|
||||
// and it is distinguished from MSVC by CMake compiler ID.
|
||||
// This provides the compiler ID to set up a different Qul configuration
|
||||
// for MSVC and MinGW.
|
||||
if (m_toolChainPackage) {
|
||||
switch (m_toolChainPackage->toolchainType()) {
|
||||
case McuToolChainPackage::ToolChainType::MSVC:
|
||||
return QLatin1String("msvc");
|
||||
case McuToolChainPackage::ToolChainType::GCC:
|
||||
case McuToolChainPackage::ToolChainType::MinGW:
|
||||
return QLatin1String("gnu");
|
||||
default:
|
||||
return QLatin1String("unsupported");
|
||||
}
|
||||
}
|
||||
return QLatin1String("invalid");
|
||||
}
|
||||
|
||||
void McuTarget::printPackageProblems() const
|
||||
{
|
||||
for (auto package : packages()) {
|
||||
|
||||
Reference in New Issue
Block a user