mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
ninja: style "ninja" (for the program) with <command>
Or the mix up of "ninja" and "Ninja" will seem puzzling...
This commit is contained in:
parent
30f5283fab
commit
4640b37d96
@ -49,12 +49,12 @@
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Ninja</title>
|
<title>Installation of Ninja</title>
|
||||||
|
|
||||||
<para>When run, ninja normally utilizes the greatest possible number of processes
|
<para>When run, <command>ninja</command> normally utilizes the greatest
|
||||||
in parallel. By default this is the number of cores on the system,
|
possible number of processes in parallel. By default this is the number of cores on the system,
|
||||||
plus two. This may overheat the CPU, or make the system run out
|
plus two. This may overheat the CPU, or make the system run out
|
||||||
of memory. When ninja is invoked from the command line, passing the -jN parameter
|
of memory. When <command>ninja</command> is invoked from the command line, passing the -jN parameter
|
||||||
will limit the number of parallel processes. Some packages
|
will limit the number of parallel processes. Some packages
|
||||||
embed the execution of ninja, and do not pass the -j parameter on to it.</para>
|
embed the execution of <command>ninja</command>, and do not pass the -j parameter on to it.</para>
|
||||||
|
|
||||||
<para>Using the <emphasis>optional</emphasis> procedure below allows a user to
|
<para>Using the <emphasis>optional</emphasis> procedure below allows a user to
|
||||||
limit the number of parallel processes via an environment variable,
|
limit the number of parallel processes via an environment variable,
|
||||||
@ -62,9 +62,9 @@
|
|||||||
|
|
||||||
<screen>export NINJAJOBS=4</screen>
|
<screen>export NINJAJOBS=4</screen>
|
||||||
|
|
||||||
will limit ninja to four parallel processes.</para>
|
will limit <command>ninja</command> to four parallel processes.</para>
|
||||||
|
|
||||||
<para>If desired, make ninja recognize the environment variable
|
<para>If desired, make <command>ninja</command> recognize the environment variable
|
||||||
NINJAJOBS by running the stream editor:</para>
|
NINJAJOBS by running the stream editor:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">sed -i '/int Guess/a \
|
<screen><userinput remap="pre">sed -i '/int Guess/a \
|
||||||
|
Loading…
Reference in New Issue
Block a user