]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Write to STDERR on error in test-build.
authorSadie Powell <sadie@witchery.services>
Thu, 27 May 2021 21:14:03 +0000 (22:14 +0100)
committerSadie Powell <sadie@witchery.services>
Fri, 28 May 2021 19:07:50 +0000 (20:07 +0100)
tools/test-build

index 007096a488535fa1a9bd5e313b40c6b35848ddb7..b9eace0ebe20c6a489a85bcbb1d117edff8c363f 100755 (executable)
@@ -38,7 +38,7 @@ my $root = dirname $RealDir;
 my @compilers = $#ARGV >= 0 ? @ARGV : qw(g++ clang++ icpc);
 for my $compiler (@compilers) {
        if (system "$compiler -v > /dev/null 2>&1") {
-               say "Skipping $compiler as it is not installed on this system!";
+               say STDERR "Skipping $compiler as it is not installed on this system!";
                next;
        }
        $ENV{CXX} = $compiler;
@@ -54,11 +54,11 @@ for my $compiler (@compilers) {
                        push @configure_flags, '--disable-auto-extras';
                }
                if (execute "$root/configure", '--development', '--socketengine', $socketengine, @configure_flags) {
-                       say "Failed to configure using the $compiler compiler and the $socketengine socket engine!";
+                       say STDERR "Failed to configure using the $compiler compiler and the $socketengine socket engine!";
                        exit 1;
                }
                if (execute 'make', '--directory', $root, '--jobs', get_cpu_count() + 1, 'install') {
-                       say "Failed to compile using the $compiler compiler and the $socketengine socket engine!";
+                       say STDERR "Failed to compile using the $compiler compiler and the $socketengine socket engine!";
                        exit 1;
                }
                say "Building using the $compiler compiler and the $socketengine socket engine succeeded!";