Author: eelco
Date: Tue Aug 17 07:22:05 2010
New Revision: 23196
URL: https://svn.nixos.org/websvn/nix/?rev=23196&sc=1
Log:
* Document --cores in the manual.
Modified:
nix/trunk/doc/manual/conf-file.xml
nix/trunk/doc/manual/opt-common-syn.xml
nix/trunk/doc/manual/opt-common.xml
nix/trunk/doc/manual/release-notes.xml
nix/trunk/nix.conf.example
Modified: nix/trunk/doc/manual/conf-file.xml
==============================================================================
--- nix/trunk/doc/manual/conf-file.xml Mon Aug 16 20:37:18 2010 (r23195)
+++ nix/trunk/doc/manual/conf-file.xml Tue Aug 17 07:22:05 2010 (r23196)
@@ -97,6 +97,25 @@
</varlistentry>
+ <varlistentry
xml:id="conf-build-cores"><term><literal>build-cores</literal></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 can be overriden using the <option
+ linkend='opt-cores'>--cores</option> command line switch and
+ defaults to <literal>1</literal>. The value <literal>0</literal>
+ means that the builder should use all available CPU cores in the
+ system.</para></listitem>
+
+ </varlistentry>
+
+
<varlistentry
xml:id="conf-build-max-silent-time"><term><literal>build-max-silent-time</literal></term>
<listitem>
Modified: nix/trunk/doc/manual/opt-common-syn.xml
==============================================================================
--- nix/trunk/doc/manual/opt-common-syn.xml Mon Aug 16 20:37:18 2010
(r23195)
+++ nix/trunk/doc/manual/opt-common-syn.xml Tue Aug 17 07:22:05 2010
(r23196)
@@ -14,6 +14,10 @@
<replaceable>number</replaceable>
</arg>
<arg>
+ <arg><option>--cores</option></arg>
+ <replaceable>number</replaceable>
+</arg>
+<arg>
<arg><option>--max-silent-time</option></arg>
<replaceable>number</replaceable>
</arg>
Modified: nix/trunk/doc/manual/opt-common.xml
==============================================================================
--- nix/trunk/doc/manual/opt-common.xml Mon Aug 16 20:37:18 2010 (r23195)
+++ nix/trunk/doc/manual/opt-common.xml Tue Aug 17 07:22:05 2010 (r23196)
@@ -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>
Modified: nix/trunk/doc/manual/release-notes.xml
==============================================================================
--- nix/trunk/doc/manual/release-notes.xml Mon Aug 16 20:37:18 2010
(r23195)
+++ nix/trunk/doc/manual/release-notes.xml Tue Aug 17 07:22:05 2010
(r23196)
@@ -8,7 +8,7 @@
<!--==================================================================-->
-<section xml:id="ssec-relnotes-0.16"><title>Release 0.16 (August 16,
2010)</title>
+<section xml:id="ssec-relnotes-0.16"><title>Release 0.16 (August 17,
2010)</title>
<para>This release has the following improvements:</para>
@@ -39,8 +39,8 @@
builder can use this at its discretion to perform a parallel
build, e.g., by calling <command>make -j
<replaceable>N</replaceable></command>. In Nixpkgs, this can be
- enabled on a per-package basis by setting
- <varname>enableParallelBuilding</varname> to
+ enabled on a per-package basis by setting the derivation
+ attribute <varname>enableParallelBuilding</varname> to
<literal>true</literal>.
</para>
</listitem>
Modified: nix/trunk/nix.conf.example
==============================================================================
--- nix/trunk/nix.conf.example Mon Aug 16 20:37:18 2010 (r23195)
+++ nix/trunk/nix.conf.example Tue Aug 17 07:22:05 2010 (r23196)
@@ -63,7 +63,7 @@
#
# This option defines the number of CPU cores to utilize in parallel
# within a build job, i.e. by passing an appropriate `-jN' flag to GNU
-# make. The default is 1, meaning that parallel building within jobs
+# Make. The default is 1, meaning that parallel building within jobs
# is disabled. Passing the special value `0' causes Nix to try and
# auto-detect the number of available cores on the local host. This
# setting can be overridden using the `--cores' command line switch.
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits