diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-08-24T09·56+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-08-24T09·56+0000 |
commit | 955d11aae738f7f9c56c51e8ab2eabdf8732aab1 (patch) | |
tree | c6a447018ba865580700e727997bb079aba4a0f4 /doc/manual/opt-common.xml | |
parent | 5c5ab2bc12472f63a33cc841dcdc57f1ed8ddea5 (diff) | |
parent | c67eccc26d42bce9496024ac77eaa7e4ff725d01 (diff) |
* Sync with the trunk.
Diffstat (limited to 'doc/manual/opt-common.xml')
-rw-r--r-- | doc/manual/opt-common.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/manual/opt-common.xml b/doc/manual/opt-common.xml index 3be9f5dd5fc3..2d67162d7cad 100644 --- a/doc/manual/opt-common.xml +++ b/doc/manual/opt-common.xml @@ -98,7 +98,25 @@ linkend='conf-build-max-jobs'><literal>build-max-jobs</literal></link> configuration setting, which itself defaults to <literal>1</literal>. A higher value is useful on SMP systems or to - exploit I/O latency. </para></listitem> + exploit I/O latency.</para></listitem> + +</varlistentry> + + +<varlistentry xml:id="opt-cores"><term><option>--cores</option></term> + + <listitem><para>Sets the value of the <envar>NIX_BUILD_CORES</envar> + environment variable in the invocation of builders. Builders can + use this variable at their discretion to control the maximum amount + of parallelism. For instance, in Nixpkgs, if the derivation + attribute <varname>enableParallelBuilding</varname> is set to + <literal>true</literal>, the builder passes the + <option>-j<replaceable>N</replaceable></option> flag to GNU Make. + It defaults to the value of the <link + linkend='conf-build-cores'><literal>build-cores</literal></link> + configuration setting, if set, or <literal>1</literal> otherwise. + The value <literal>0</literal> means that the builder should use all + available CPU cores in the system.</para></listitem> </varlistentry> |