Do not clobber @INC completely in buildcustomize.pl
authorFather Chrysostomos <sprout@cpan.org>
Wed, 4 Dec 2013 13:46:40 +0000 (05:46 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 7 Dec 2013 02:40:46 +0000 (18:40 -0800)
commita462003e1b0ecd74d52837c88aa79db4ff49fce8
tree15f78d2e56b1acbc73ee821d17a177172bf9af8e
parent66ff7d34c2e2275f89445e904eb5979ada07ef9f
Do not clobber @INC completely in buildcustomize.pl

buildcustomize.pl (for miniperl) replaces @INC (usually qw(lib .))
with the whole list of build directories we need followed by
qw(lib .).

runperl from test.pl is such that this:

    runperl(switches => [ "-Irun/flib" ], ...)

turns into:

    /path/to/perl.git/miniperl "-I../lib" -Irun/flib

The end result is that -Irun/flib gets stripped out and clobbered, and
switchM.t fails under minitest.
write_buildcustomize.pl