summaryrefslogtreecommitdiff
path: root/write_buildcustomize.pl
diff options
context:
space:
mode:
Diffstat (limited to 'write_buildcustomize.pl')
-rw-r--r--write_buildcustomize.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/write_buildcustomize.pl b/write_buildcustomize.pl
index 92c75de93e..576fe5cfec 100644
--- a/write_buildcustomize.pl
+++ b/write_buildcustomize.pl
@@ -7,9 +7,6 @@ if (@ARGV) {
unshift @INC, 'lib';
}
-unshift @INC, ('dist/Cwd', 'dist/Cwd/lib');
-require File::Spec::Functions;
-
my $file = 'lib/buildcustomize.pl';
# To clarify, this isn't the entire suite of modules considered "toolchain"
@@ -35,6 +32,10 @@ my @toolchain = qw(cpan/AutoLoader/lib
# Used only in ExtUtils::Liblist::Kid::_win32_ext()
push @toolchain, 'cpan/Text-ParseWords/lib' if $^O eq 'MSWin32';
+push @toolchain, 'ext/VMS-Filespec/lib' if $^O eq 'VMS';
+
+unshift @INC, @toolchain;
+require File::Spec::Functions;
# lib must be last, as the toolchain modules write themselves into it
# as they build, and it's important that @INC order ensures that the partially