Changeset e050677 for chapter06/ninja.xml
- Timestamp:
- 02/19/2019 06:05:57 AM (5 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 43eb476
- Parents:
- 1d19f36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/ninja.xml
r1d19f36 re050677 40 40 <sect2 role="installation"> 41 41 <title>Installation of Ninja</title> 42 <!-- 42 43 43 <para>When run, ninja normally runs a maximum number of processes 44 44 in parallel. By default this is the number of cores on the system … … 48 48 embed the execution of ninja and do not pass a -j parameter.</para> 49 49 50 <para>Using the <emphasis>optional</emphasis> p atchbelow allows a user to50 <para>Using the <emphasis>optional</emphasis> procedure below allows a user to 51 51 limit the number of parallel processes via an environment variable, 52 NINJAJOBS. <command>For example</command> setting:52 NINJAJOBS. <command>For example</command>, setting: 53 53 54 <!- -Using <command> here to make the output bold. We really don't want54 <!--Using <command> here to make the output bold. We really don't want 55 55 users setting this now and experience shows that many users blindly 56 copy/paste anything in a box. - 56 copy/paste anything in a box. --> 57 57 58 58 <screen>export NINJAJOBS=4</screen> … … 60 60 will limit ninja to four parallel processes.</para> 61 61 62 <para>If desired, install the patch by running:</para> 62 <para>If desired, add the capability to use the environment variable 63 NINJAJOBS by running:</para> 63 64 64 <screen><userinput remap="pre">patch -Np1 -i ../ninja-1.8.2-add_NINJAJOBS_var-1.patch</userinput></screen> 65 --> 65 <screen><userinput remap="pre">sed -i '/int Guess/a \ 66 int j = 0;\ 67 char* jobs = getenv( "NINJAJOBS" );\ 68 if ( jobs != NULL ) j = atoi( jobs );\ 69 if ( j > 0 ) return j;\ 70 ' src/ninja.cc</userinput></screen> 71 66 72 <para>Build Ninja with:</para> 67 73
Note:
See TracChangeset
for help on using the changeset viewer.