]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
test-build: Pass the make jobs as a separate argument.
authorPeter Powell <petpow@saberuk.com>
Sun, 15 Oct 2017 02:55:53 +0000 (03:55 +0100)
committerPeter Powell <petpow@saberuk.com>
Sun, 15 Oct 2017 02:55:53 +0000 (03:55 +0100)
The old way was only necessary when we supported BSD Make.

tools/test-build

index 2b9ee4ee20c00e0ac0735f44e58d485b20eba9ec..eb77a2bcf2c993750663229e2c7672124d2599db 100755 (executable)
@@ -61,14 +61,14 @@ foreach my $compiler (@compilers) {
                }
                if (!defined $ENV{TEST_BUILD_DYNAMIC}) {
                        $ENV{INSPIRCD_STATIC} = 1;
-                       if (system 'make', '-j'.get_cpu_count, 'install') {
+                       if (system 'make', '--jobs', get_cpu_count, 'install') {
                                say "Failed to compile with static modules using the $compiler compiler and the $socketengine socket engine!";
                                exit 1;
                        }
                }
                if (!defined $ENV{TEST_BUILD_STATIC}) {
                        delete $ENV{INSPIRCD_STATIC};
-                       if (system 'make', '-j'.get_cpu_count, 'install') {
+                       if (system 'make', '--jobs', get_cpu_count, 'install') {
                                say "Failed to compile with dynamic modules using the $compiler compiler and the $socketengine socket engine!";
                                exit 1;
                        }