diff options
author | Olivier De Cannière <[email protected]> | 2024-10-23 10:14:23 +0200 |
---|---|---|
committer | Olivier De Cannière <[email protected]> | 2024-11-04 15:21:11 +0100 |
commit | 4dab304aeb42d1237f3eba863eeb66ba2a18b2b0 (patch) | |
tree | bb52eef0141480c7240f578a8286a37aee6d0724 /tools/qmlcachegen/qmlcachegen.cpp | |
parent | 318ac440653a570d2bd18fc3d25e1b2fc8af88fa (diff) |
aotstats: Keep track of files and modules with no functions or bindings
Before this change, the report presented to the user would be
completely silent about them. For the sake of consitency, register each
file before trying to compile it. This will then add an entry for empty
files and modules.
Task-number: QTBUG-124667
Pick-to: 6.8
Change-Id: I502660b7a16a67a173763f9ea2b081cbcceb5658
Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'tools/qmlcachegen/qmlcachegen.cpp')
-rw-r--r-- | tools/qmlcachegen/qmlcachegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp index aebca5f2fc..97c05cb208 100644 --- a/tools/qmlcachegen/qmlcachegen.cpp +++ b/tools/qmlcachegen/qmlcachegen.cpp @@ -296,6 +296,7 @@ int main(int argc, char **argv) if (parser.isSet(dumpAotStatsOption)) { QQmlJS::QQmlJSAotCompilerStats::setRecordAotStats(true); QQmlJS::QQmlJSAotCompilerStats::setModuleId(parser.value(moduleIdOption)); + QQmlJS::QQmlJSAotCompilerStats::registerFile(inputFile); } if (parser.isSet(validateBasicBlocksOption)) |