From eeb08d9537d0b4e77b91848169e0bb79ec3d912c Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 3 Jan 2017 13:19:15 +0100 Subject: Re-do QML type compilation of ahead-of-time generated QML cache files As we currently lack the ability to do type resolution at AOT cache generation time, we need to re-do the work after loading the cache file, making us essentially only re-use the code and avoiding the step of parsing. Change-Id: I12844692d4766345d8a313b59d21abf1f868e2d1 Reviewed-by: Lars Knoll --- tools/qmlcachegen/qmlcachegen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp index 84ad1c7778..21ff882c2f 100644 --- a/tools/qmlcachegen/qmlcachegen.cpp +++ b/tools/qmlcachegen/qmlcachegen.cpp @@ -144,6 +144,7 @@ static bool compileQmlFile(const QString &inputFileName, QV4::EvalISelFactory *i QV4::CompiledData::ResolvedTypeReferenceMap dummyDependencies; QV4::CompiledData::Unit *unit = generator.generate(irDocument, /*engine*/nullptr, dummyDependencies); unit->flags |= QV4::CompiledData::Unit::StaticData; + unit->flags |= QV4::CompiledData::Unit::PendingTypeCompilation; irDocument.javaScriptCompilationUnit->data = unit; if (!irDocument.javaScriptCompilationUnit->saveToDisk(inputFileName, &error->message)) -- cgit v1.2.3