diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-07-22 13:48:10 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-07-23 07:43:17 +0000 |
commit | 6508365c0498fdf08dc65ff7309f8e01e6f979ed (patch) | |
tree | c17379840211b574e3382906f00c20ca443cee66 | |
parent | 795476c41a5d45009d3f3aaa00631a1e19bf02cf (diff) | |
download | qtbase-6508365c0498fdf08dc65ff7309f8e01e6f979ed.tar.gz |
Skip loading of index files if we are running with --prepare
This makes generation of the index files 3 times as fast.
Change-Id: I89af86e54d932fa19330f36a33af6ed9ea81461d
Reviewed-by: Martin Smith <martin.smith@digia.com>
-rw-r--r-- | src/tools/qdoc/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tools/qdoc/main.cpp b/src/tools/qdoc/main.cpp index cb1b890cdd..3833cbb5dd 100644 --- a/src/tools/qdoc/main.cpp +++ b/src/tools/qdoc/main.cpp @@ -342,9 +342,11 @@ static void processQdocconfFile(const QString &fileName) qdb->clearSearchOrder(); if (!Generator::singleExec()) { - Generator::debug(" loading index files"); - loadIndexFiles(config); - Generator::debug(" done loading index files"); + if (!Generator::preparing()) { + Generator::debug(" loading index files"); + loadIndexFiles(config); + Generator::debug(" done loading index files"); + } qdb->newPrimaryTree(project); } else if (Generator::preparing()) |