summaryrefslogtreecommitdiff
path: root/Porting/bisect-runner.pl
diff options
context:
space:
mode:
authorMatthew Horsfall (alh) <wolfsage@gmail.com>2015-04-19 11:07:54 -0400
committerMatthew Horsfall <wolfsage@gmail.com>2015-06-08 12:59:22 -0400
commiteffe640e5d4723ca15c089ab4d60e81bf349aa37 (patch)
tree71e8a74abdb71e919064944263ddf471dbb54168 /Porting/bisect-runner.pl
parent176804e8642f1157c7c52a6bc92259ade24db171 (diff)
downloadperl-effe640e5d4723ca15c089ab4d60e81bf349aa37.tar.gz
When bisecting with modules, actually use a fresh build dir every build.
Diffstat (limited to 'Porting/bisect-runner.pl')
-rwxr-xr-xPorting/bisect-runner.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl
index 69f35dffbb..b1a501fc81 100755
--- a/Porting/bisect-runner.pl
+++ b/Porting/bisect-runner.pl
@@ -5,6 +5,7 @@ use Getopt::Long qw(:config bundling no_auto_abbrev);
use Pod::Usage;
use Config;
use File::Temp qw(tempdir);
+use File::Spec;
my @targets
= qw(none config.sh config.h miniperl lib/Config.pm Fcntl perl test_prep);
@@ -1462,8 +1463,15 @@ if ($options{module} || $options{'with-module'}) {
delete $ENV{PERL_MB_OPT};
delete $ENV{PERL_MM_OPT};
+ # Make sure we load up our CPAN::MyConfig and then
+ # override the build_dir so we have a fresh one
+ # every build
+ my $cdir = File::Spec->catfile($ENV{HOME},".cpan");
+
my @cpanshell = (
"$prefix/bin/perl",
+ "-I", "$cdir",
+ "-MCPAN::MyConfig",
"-MCPAN",
"-e","\$CPAN::Config->{build_dir}=q{$bdir};",
"-e",