forked from qt-creator/qt-creator
MSVC: Do not cut of last character of predefined macro values
The output is split at newlines, so remove the code that cuts of the last character, claiming that to be a newline. Task-number: QTCREATORBUG-16559 Change-Id: Id2c40bc919d257c4e3570441545ac6c43af151d2 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -259,8 +259,6 @@ QByteArray MsvcToolChain::msvcPredefinedMacros(const QStringList cxxflags,
|
||||
QStringList split = line.split('=');
|
||||
const QString key = split.at(0).mid(1);
|
||||
QString value = split.at(1);
|
||||
if (!value.isEmpty())
|
||||
value.chop(1); //remove '\n'
|
||||
predefinedMacros += "#define ";
|
||||
predefinedMacros += key.toUtf8();
|
||||
predefinedMacros += ' ';
|
||||
|
Reference in New Issue
Block a user