From 0c34d2844712798812c40d30b786cd5f86d9c850 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 Feb 2020 11:59:15 +0000 Subject: [PATCH] Tell people to run make with the number of CPU cores plus 1. This results in faster builds as there's always one job waiting. --- configure | 2 +- tools/test-build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c4fdbb919..fb87c3dd9 100755 --- 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 diff --git a/tools/test-build b/tools/test-build index abb43b50f..516af0866 100755 --- a/tools/test-build +++ b/tools/test-build @@ -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; } -- 2.39.5