forked from qt-creator/qt-creator
QbsProjectManager: Do not set an empty compiler name
If one of the two compiler types in the Kit is not set, leave the respective value in qbs at its default. Things will likely work anyway, whereas setting an empty compiler name is guaranteed to break. Task-number: QTCREATORBUG-17109 Change-Id: I2b4153cb9a9daafb2f57659e16622e00d3921005 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
@@ -263,7 +263,9 @@ QVariantMap DefaultPropertyProvider::autoGeneratedProperties(const ProjectExplor
|
||||
if (toolchain.contains(QLatin1String("msvc"))) {
|
||||
data.insert(QLatin1String(CPP_COMPILERNAME), mainCompilerName);
|
||||
} else {
|
||||
if (!cCompilerName.isEmpty())
|
||||
data.insert(QLatin1String(CPP_COMPILERNAME), cCompilerName);
|
||||
if (!cxxCompilerName.isEmpty())
|
||||
data.insert(QLatin1String(CPP_CXXCOMPILERNAME), cxxCompilerName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user