]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Tell people to run make with the number of CPU cores plus 1.
authorSadie Powell <sadie@witchery.services>
Mon, 10 Feb 2020 11:59:15 +0000 (11:59 +0000)
committerSadie Powell <sadie@witchery.services>
Mon, 10 Feb 2020 11:59:15 +0000 (11:59 +0000)
This results in faster builds as there's always one job waiting.

configure
tools/test-build

index c4fdbb919bc7de550f1e5393347fbec650e311c1..fb87c3dd9d2e454e462b1d48e19a2863f095c9a9 100755 (executable)
--- a/configure
+++ b/configure
@@ -431,7 +431,7 @@ print_format <<"EOM";
 <|GREEN Execution User:|>  $config{USER} ($config{UID})
 <|GREEN Socket Engine:|>   $config{SOCKETENGINE}
 
-To build with these settings run '<|GREEN make -j${\get_cpu_count} install|>' now.
+To build with these settings run '<|GREEN make -j${\get_cpu_count + 1} install|>' now.
 
 EOM
 
index abb43b50f74853d67292ef2eea01cb2b69e4aa60..516af0866b159fd1ad9f57a25c2804406f966cd4 100755 (executable)
@@ -64,7 +64,7 @@ foreach my $compiler (@compilers) {
                        say "Failed to configure using the $compiler compiler and the $socketengine socket engine!";
                        exit 1;
                }
-               if (execute 'make', '--jobs', get_cpu_count, 'install') {
+               if (execute 'make', '--jobs', get_cpu_count + 1, 'install') {
                        say "Failed to compile using the $compiler compiler and the $socketengine socket engine!";
                        exit 1;
                }