Complain loudly if XS cannot be compiled
This commit is contained in:
parent
3ac94bd6d8
commit
849e714147
1 changed files with 4 additions and 1 deletions
5
Build.PL
5
Build.PL
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue