diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-11-11 19:40:48 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-11-11 19:40:48 +0400 |
commit | 849e714147330239fee9e98cc8c76781897e306e (patch) | |
tree | d8f6e5795b7d2bc6e4dce1160406d8ba572a13ce /Build.PL | |
parent | 3ac94bd6d8de507a3ebe5261cad33a0f66de46a2 (diff) |
Complain loudly if XS cannot be compiled
Diffstat (limited to 'Build.PL')
-rw-r--r-- | Build.PL | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"; + } } } |