Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-11-11 19:40:48 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-11-11 19:40:48 +0400
commit849e714147330239fee9e98cc8c76781897e306e (patch)
treed8f6e5795b7d2bc6e4dce1160406d8ba572a13ce /Build.PL
parent3ac94bd6d8de507a3ebe5261cad33a0f66de46a2 (diff)
Complain loudly if XS cannot be compiled
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL5
1 files changed, 4 insertions, 1 deletions
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";
+ }
}
}