From 6a1667bc4e6d1074f547434d714cd47ed8ebfc41 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 19 Jul 2016 10:13:26 +0200 Subject: 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 --- src/qml/compiler/qv4compiler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/compiler/qv4compiler.cpp') diff --git a/src/qml/compiler/qv4compiler.cpp b/src/qml/compiler/qv4compiler.cpp index fc462bb1c6..5d13734247 100644 --- a/src/qml/compiler/qv4compiler.cpp +++ b/src/qml/compiler/qv4compiler.cpp @@ -404,6 +404,7 @@ QV4::CompiledData::Unit QV4::Compiler::JSUnitGenerator::generateHeader(QV4::Comp } unit.indexOfRootFunction = -1; unit.sourceFileIndex = getStringId(irModule->fileName); + unit.sourceTimeStamp = irModule->sourceTimeStamp; unit.nImports = 0; unit.offsetToImports = 0; unit.nObjects = 0; -- cgit v1.2.3