diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-19 10:13:26 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-19 18:19:46 +0000 |
commit | 6a1667bc4e6d1074f547434d714cd47ed8ebfc41 (patch) | |
tree | 84285121878205ec1f5a2c2f5ddff3a20c1fc27f /src/qml/compiler/qv4jsir_p.h | |
parent | e0e50532d29d02c8bcbab01dbfb72377102eaf8f (diff) |
Improve robustness of qml cache expiry checking
Instead of relying on two time stamps in the file system (source file and cache
file), make the determination on whether the source file is newer than the
cache solely depend on the time stamp of only the source file. This means that
when cache files are stored in archives for example their modification date
does not need to be preserved upon extraction.
Change-Id: I0b4362663868c6fb9bd7e106028161b2d67274d4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4jsir_p.h')
-rw-r--r-- | src/qml/compiler/qv4jsir_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4jsir_p.h b/src/qml/compiler/qv4jsir_p.h index 2d6d7d728f..de84accbb1 100644 --- a/src/qml/compiler/qv4jsir_p.h +++ b/src/qml/compiler/qv4jsir_p.h @@ -932,6 +932,7 @@ struct Q_QML_PRIVATE_EXPORT Module { QVector<Function *> functions; Function *rootFunction; QString fileName; + qint64 sourceTimeStamp; bool isQmlModule; // implies rootFunction is always 0 bool debugMode; @@ -939,6 +940,7 @@ struct Q_QML_PRIVATE_EXPORT Module { Module(bool debugMode) : rootFunction(0) + , sourceTimeStamp(0) , isQmlModule(false) , debugMode(debugMode) {} |