summaryrefslogtreecommitdiff
path: root/src/qdoc/main.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2017-10-23 13:15:34 +0200
committerTopi Reiniö <topi.reinio@qt.io>2017-10-24 12:19:58 +0000
commitcc5e1cfdf7707267c6cbb0dea65ea329879bff01 (patch)
tree74ef01f1e86d1f7fc02ec79943e72aec2b4f654e /src/qdoc/main.cpp
parent51617b499c4f10e4079d5b58693d533dab6e1f8f (diff)
downloadqttools-cc5e1cfdf7707267c6cbb0dea65ea329879bff01.tar.gz
qdoc: Allow setting -no-link-errors via environment variable
Testing documentation builds in the CI will (at least initially) ignore dependencies between doc modules, so link error count is not a reliable metric to pass or reject documentation changes. Allow CI to set an environment variable to disable linking errors, as passing the -no-link-errors option to QDoc is not trivial in the current build system. Task-number: QTQAINFRA-1320 Change-Id: I8e6efaca4a0889d6f59ce781e9f05f3b836e95e9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io> Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/main.cpp')
-rw-r--r--src/qdoc/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp
index a8e147f82..90cd1ec76 100644
--- a/src/qdoc/main.cpp
+++ b/src/qdoc/main.cpp
@@ -667,7 +667,7 @@ void QDocCommandLineParser::process(const QCoreApplication &app)
Config::overrideOutputDir = value(outputDirOption);
foreach (const QString &format, values(outputFormatOption))
Config::overrideOutputFormats.insert(format);
- noLinkErrors = isSet(noLinkErrorsOption);
+ noLinkErrors = isSet(noLinkErrorsOption) || qEnvironmentVariableIsSet("QDOC_NOLINKERRORS");
autolinkErrors = isSet(autoLinkErrorsOption);
if (isSet(debugOption))
Generator::startDebugging(QString("command line"));