From 65cb4cba999b47a643e820a102b3185f861b97c1 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 7 Jul 2016 13:07:20 -0700 Subject: Introduce the --wait-lock command line option This allows multiple qbs processes competing for the same configuration instance to be launched simultaneously, and the inactive instances will wait indefinitely for the lock file to be released. This is primarily intended for use by the IDE generator plugins like Visual Studio where the "Build Solution" command builds all projects in the solution in parallel (and this cannot be disabled). Change-Id: I13c37a21dd8386e3dfdab1f769b8242bfcfc2e45 Reviewed-by: Christian Kandeler --- src/app/qbs/parser/commandlineparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app/qbs/parser/commandlineparser.cpp') diff --git a/src/app/qbs/parser/commandlineparser.cpp b/src/app/qbs/parser/commandlineparser.cpp index addaffaef..6abc9a83b 100644 --- a/src/app/qbs/parser/commandlineparser.cpp +++ b/src/app/qbs/parser/commandlineparser.cpp @@ -221,6 +221,11 @@ bool CommandLineParser::forceProbesExecution() const return d->optionPool.forceProbesOption()->enabled(); } +bool CommandLineParser::waitLockBuildGraph() const +{ + return d->optionPool.waitLockOption()->enabled(); +} + bool CommandLineParser::logTime() const { return d->logTime; -- cgit v1.2.3