From 6508365c0498fdf08dc65ff7309f8e01e6f979ed Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 22 Jul 2015 13:48:10 +0200 Subject: 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 --- src/tools/qdoc/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tools') 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()) -- cgit v1.2.3