diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2024-09-27 14:34:13 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-09-30 11:20:09 +0000 |
| commit | ead2ab3f6a411b47a6feb121f5c1fad07814b8d0 (patch) | |
| tree | 19396055d0d8ffa24a14acc451dbecb9b2522f99 /tools/qmlcachegen/qmlcachegen.cpp | |
| parent | b6dde1f317894fe0ade761f25871a89887611f7b (diff) | |
qmlcachegen: Accept --dump-aotstats and --module-id on --only-bytecode
We set those options from CMake. qmlcachegen can still dump (empty) AOT
stats if it's compiling only to byte code, and it's not wrong to still
tell it the module ID.
Amends commit 6ae36202fd3003c6c2a1fd2a6e4293073071fa4a
Change-Id: I3990c0783f9fdf0c7c7263675dc82c8c74851eb8
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmlcachegen/qmlcachegen.cpp')
| -rw-r--r-- | tools/qmlcachegen/qmlcachegen.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp index 9552c70898..b11631148d 100644 --- a/tools/qmlcachegen/qmlcachegen.cpp +++ b/tools/qmlcachegen/qmlcachegen.cpp @@ -141,16 +141,15 @@ int main(int argc, char **argv) target = GenerateLoaderStandAlone; if (parser.isSet(onlyBytecode)) { - const std::array<QCommandLineOption *, 5> compilerOnlyOptions{ - &directCallsOption, &staticOption, &validateBasicBlocksOption, &dumpAotStatsOption, - &moduleIdOption + const std::array<QCommandLineOption *, 3> compilerOnlyOptions{ + &directCallsOption, &staticOption, &validateBasicBlocksOption }; for (auto *compilerOnlyOption : compilerOnlyOptions) { if (parser.isSet(*compilerOnlyOption)) { std::string name = compilerOnlyOption->names().first().toStdString(); fprintf(stderr, "Passing mutually exclusive options \"only-bytecode\" and \"%s\".\n" - "Remove --only-bytecode to be able to use compiler options like --%s", + "Remove --only-bytecode to be able to use compiler options like --%s\n", name.c_str(), name.c_str()); return EXIT_FAILURE; } |
