forked from qt-creator/qt-creator
QbsProjectManager: Fix linker name for MSVC.
As opposed to gcc, we can't just invoke the compiler binary for linking. Task-number: QTCREATORBUG-12824 Change-Id: Icdf8b7217b14976a7a4249b5d0c5cc5f76ffdd9f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -163,7 +163,10 @@ QVariantMap DefaultPropertyProvider::properties(const ProjectExplorer::Kit *k, c
|
|||||||
if (!toolchainPrefix.isEmpty())
|
if (!toolchainPrefix.isEmpty())
|
||||||
data.insert(QLatin1String(CPP_TOOLCHAINPREFIX), toolchainPrefix);
|
data.insert(QLatin1String(CPP_TOOLCHAINPREFIX), toolchainPrefix);
|
||||||
data.insert(QLatin1String(CPP_COMPILERNAME), compilerName);
|
data.insert(QLatin1String(CPP_COMPILERNAME), compilerName);
|
||||||
|
if (targetAbi.os() != ProjectExplorer::Abi::WindowsOS
|
||||||
|
|| targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMSysFlavor) {
|
||||||
data.insert(QLatin1String(CPP_LINKERNAME), compilerName);
|
data.insert(QLatin1String(CPP_LINKERNAME), compilerName);
|
||||||
|
}
|
||||||
data.insert(QLatin1String(CPP_TOOLCHAINPATH), cxxFileInfo.absolutePath());
|
data.insert(QLatin1String(CPP_TOOLCHAINPATH), cxxFileInfo.absolutePath());
|
||||||
if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2013Flavor) {
|
if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2013Flavor) {
|
||||||
const QLatin1String flags("/FS");
|
const QLatin1String flags("/FS");
|
||||||
|
|||||||
Reference in New Issue
Block a user