Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#117: need to write B::C::Flags earlier to be parsed by libscan, and …

…installed

See https://travis-ci.org/rurban/perl-compiler/jobs/4519819 for a typical failure.
Cant locate B/C/Flags.pm in @INC
  • Loading branch information...
commit ecc5d1ce955c250f6ac5368f5770ddc04ea31d09 1 parent 04bf7ae
@rurban authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 Makefile.PL
View
10 Makefile.PL
@@ -5,6 +5,14 @@ use 5.006;
use Carp;
my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
+mkdir "lib/B/C" unless -d "lib/B/C";
+unless (-e 'lib/B/C/Flags.pm') {
+ open PH, ">", "lib/B/C/Flags.pm";
+ print PH "package B::C::Flags;\n\n";
+ print PH "\n1;\n";
+ close PH;
+ chmod 0644, "lib/B/C/Flags.pm";
+}
# generate lib/B/Asmdata.pm beforehand
# my $X = $^X =~ / / ? qq("$^X") : $^X;
@@ -57,7 +65,7 @@ sub write_b_c_flags {
print PH "\$extra_libs = \"$extra_libs\";\n";
print PH "\n1;\n";
close PH;
- chmod (0644, "lib/B/C/Flags.pm");
+ chmod 0644, "lib/B/C/Flags.pm";
}
# XXX Check for 5.16.0 B-1.34 and offer to patch it?
Please sign in to comment.
Something went wrong with that request. Please try again.