diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-07-07 13:07:20 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-07-14 16:05:05 +0000 |
commit | 65cb4cba999b47a643e820a102b3185f861b97c1 (patch) | |
tree | 943c30a1389fca4b7709d9a23ba05a0d77658019 /src/app/qbs/parser/commandlineparser.cpp | |
parent | 8d4d75b9ad62e48e9a3920df9815f391b2e81e6e (diff) |
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 <christian.kandeler@qt.io>
Diffstat (limited to 'src/app/qbs/parser/commandlineparser.cpp')
-rw-r--r-- | src/app/qbs/parser/commandlineparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |