Qmake: Fix compilation with QMAKE_USE_CACHE
Change-Id: Ib2872093d1e82a59baad94104dafe8329a9e8942 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
33fea7e7a9
commit
de6b81399e
@ -1050,7 +1050,7 @@ void QMakeSourceFileInfo::saveCache(const QString &cf)
|
|||||||
QFile file(QMakeLocalFileName(cf).local());
|
QFile file(QMakeLocalFileName(cf).local());
|
||||||
if(file.open(QIODevice::WriteOnly)) {
|
if(file.open(QIODevice::WriteOnly)) {
|
||||||
QTextStream stream(&file);
|
QTextStream stream(&file);
|
||||||
stream << qmake_version() << endl << endl; //version
|
stream << QMAKE_VERSION_STR << endl << endl; //version
|
||||||
{ //cache verification
|
{ //cache verification
|
||||||
QMap<QString, QStringList> verify = getCacheVerification();
|
QMap<QString, QStringList> verify = getCacheVerification();
|
||||||
stream << verify.count() << endl;
|
stream << verify.count() << endl;
|
||||||
@ -1105,11 +1105,11 @@ void QMakeSourceFileInfo::loadCache(const QString &cf)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QFile file;
|
QFile file;
|
||||||
if(!file.open(QIODevice::ReadOnly, fd))
|
if (!file.open(fd, QIODevice::ReadOnly))
|
||||||
return;
|
return;
|
||||||
QTextStream stream(&file);
|
QTextStream stream(&file);
|
||||||
|
|
||||||
if(stream.readLine() == qmake_version()) { //version check
|
if (stream.readLine() == QMAKE_VERSION_STR) { //version check
|
||||||
stream.skipWhiteSpace();
|
stream.skipWhiteSpace();
|
||||||
|
|
||||||
bool verified = true;
|
bool verified = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user