aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2017-09-13 15:31:49 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2017-09-14 06:34:56 +0000
commitcf569c1e30da4523a42d7070e5cc30c6f4f5abcb (patch)
tree3d7e7af0357ec490cf13f11d98d896c98797a06b /doc
parent2b6e21c2931fb889538b07c12308f08fbf604613 (diff)
Doc: Describe the concurrent jobs (-j) option for building applications
Change-Id: Iaa2d97d9c2cda7ccd435124a916f558486bb8d80 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/qbs.qdoc24
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc
index 9e91769b1..3185053ca 100644
--- a/doc/qbs.qdoc
+++ b/doc/qbs.qdoc
@@ -1075,11 +1075,29 @@
qbs
\endcode
+ By default, \QBS uses all the CPU cores available to achieve maximum build
+ parallelization. To explicitly specify the number of concurrent jobs, use
+ the \c -j option. For example, to run 4 concurrent jobs, enter the following
+ command:
+
+ \code
+ qbs -j4
+ \endcode
+
The application is built using the default build profile that is set up
in your \QBS configuration.
- To build with other profiles, specify options for the build
- command. For example, to build debug and release configurations with a
- profile named "Android", enter the following command:
+
+ You can use the \c config command to set the max number of jobs per profile.
+ For example, to set four jobs as the default option for a profile named
+ \e Android, enter the following command:
+
+ \code
+ qbs config profiles.Android.preferences.jobs 4
+ \endcode
+
+ To build with other profiles than the default one, specify options for the
+ build command. For example, to build debug and release configurations with
+ the \e Android profile, enter the following command:
\code
qbs build profile:Android debug release