Complain loudly if XS cannot be compiled

This commit is contained in:
Alessandro Ranellucci 2013-11-11 16:40:48 +01:00
parent 3ac94bd6d8
commit 849e714147

View File

@ -126,7 +126,10 @@ EOF
system './xs/Build', 'distclean';
}
}
system $cpanm, '--reinstall', './xs';
my $res = system $cpanm, '--reinstall', './xs';
if ($res != 0) {
die "The XS/C++ code failed to compile, aborting\n";
}
}
}