diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-09-11 16:07:26 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-11-13 21:16:48 +0800 |
commit | c17a77452a184025e6577e8cdf1315905acaa6bf (patch) | |
tree | 88b9aa39795d46abd4504c425848cd2c20c7bb00 | |
parent | 95ebbb42b7eda5114e7ea751030916f9c9eaa5fb (diff) |
automake: Do not use only 4 cores for testing if we have more
-rw-r--r-- | chapter08/automake.xml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chapter08/automake.xml b/chapter08/automake.xml index 4fc1bd277..5d7541049 100644 --- a/chapter08/automake.xml +++ b/chapter08/automake.xml @@ -53,11 +53,14 @@ <screen><userinput remap="make">make</userinput></screen> - <para> Using the -j4 make option speeds up the tests, even on systems with - only one processor, due to internal delays in individual tests. To test + <para>Using four parallel jobs speeds up the tests, even on systems with + less logical cores, due to internal delays in individual tests. To test the results, issue:</para> -<screen><userinput remap="test">make -j4 check</userinput></screen> +<screen><userinput remap="test">make <replaceable>-j$(($(nproc)>4?$(nproc):4))</replaceable> check</userinput></screen> + + <para>Replace <replaceable>$((...))</replaceable> with the number of + logical cores you want to use if you don't want to use all.</para> <para>The test t/subobj.sh is known to fail.</para> |