qmake: Clear caches before exiting

To not scare sanitizers and their users.

Change-Id: I51de5d6a5a358b3cf1355aeb6cc826a6ac021243
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Robert Löhning 2021-05-06 13:40:53 +02:00
parent 5fa80f6cd7
commit 08c852be43
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#ifndef CACHEKEYS_H
#define CACHEKEYS_H
#include "option.h"
#include "project.h"
#include <qstring.h>
#include <qstringlist.h>

View File

@ -28,6 +28,7 @@
#include "project.h"
#include "cachekeys.h"
#include "option.h"
#include <qmakeevaluator_p.h>
@ -52,8 +53,10 @@ QMakeProject::QMakeProject(QMakeProject *p)
bool QMakeProject::boolRet(VisitReturn vr)
{
if (vr == ReturnError)
if (vr == ReturnError) {
qmakeClearCaches();
exit(3);
}
Q_ASSERT(vr == ReturnTrue || vr == ReturnFalse);
return vr != ReturnFalse;
}