From 849e714147330239fee9e98cc8c76781897e306e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 11 Nov 2013 16:40:48 +0100 Subject: [PATCH] Complain loudly if XS cannot be compiled --- Build.PL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Build.PL b/Build.PL index 7b4ac81fa..ffa225076 100644 --- a/Build.PL +++ b/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"; + } } }