]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix get_cpu_count not being evaluated as a scalar.
authorSadie Powell <sadie@witchery.services>
Mon, 9 Mar 2020 03:44:41 +0000 (03:44 +0000)
committerSadie Powell <sadie@witchery.services>
Mon, 9 Mar 2020 03:44:41 +0000 (03:44 +0000)
This fixes a bug where the changes in 0c34d28447 did not work.

configure
tools/test-build

index fb87c3dd9d2e454e462b1d48e19a2863f095c9a9..ccb551ce5e5d1ed3be6ee859e3f5569c0aca0f7a 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 + 1} install|>' now.
+To build with these settings run '<|GREEN make -j${\(get_cpu_count() + 1)} install|>' now.
 
 EOM
 
index 516af0866b159fd1ad9f57a25c2804406f966cd4..25981d4a64399e8a04704f2bc9b9ee79da36e681 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 + 1, '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;
                }