forked from qt-creator/qt-creator
Debugger: Force #include <boost/version.hpp> in boost dumper tests
We might end up with undefined boost version otherwise. Change-Id: Ibcdc70cbce8aad42947ce4760df0208d5ebe83f7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -587,6 +587,7 @@ struct Profile
|
|||||||
{
|
{
|
||||||
Profile(const QByteArray &contents) : contents(contents) {}
|
Profile(const QByteArray &contents) : contents(contents) {}
|
||||||
|
|
||||||
|
QByteArray includes;
|
||||||
QByteArray contents;
|
QByteArray contents;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -609,6 +610,7 @@ struct BoostProfile : public Profile
|
|||||||
contents = QByteArray("INCLUDEPATH += ") + boostIncPath.constData();
|
contents = QByteArray("INCLUDEPATH += ") + boostIncPath.constData();
|
||||||
else
|
else
|
||||||
contents = "macx:INCLUDEPATH += /usr/local/include";
|
contents = "macx:INCLUDEPATH += /usr/local/include";
|
||||||
|
includes = "#include <boost/version.hpp>\n";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -668,6 +670,7 @@ public:
|
|||||||
const Data &operator+(const Profile &profile) const
|
const Data &operator+(const Profile &profile) const
|
||||||
{
|
{
|
||||||
profileExtra += profile.contents;
|
profileExtra += profile.contents;
|
||||||
|
includes += profile.includes;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user