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:
parent
5fa80f6cd7
commit
08c852be43
@ -29,6 +29,7 @@
|
||||
#ifndef CACHEKEYS_H
|
||||
#define CACHEKEYS_H
|
||||
|
||||
#include "option.h"
|
||||
#include "project.h"
|
||||
#include <qstring.h>
|
||||
#include <qstringlist.h>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user