Add path to expat on Windows to benefit from faster AMF parsing

This commit is contained in:
Alessandro Ranellucci 2013-11-12 13:35:36 +01:00
parent d0cbf56354
commit c8fb1ceac8

View File

@ -100,7 +100,11 @@ EOF
my %modules = (%prereqs, %recommends); my %modules = (%prereqs, %recommends);
foreach my $module (sort keys %modules) { foreach my $module (sort keys %modules) {
my $version = $modules{$module}; my $version = $modules{$module};
my $res = system $cpanm, "$module~$version"; my @cmd = ($cpanm, "$module~$version");
if ($module eq 'XML::SAX::ExpatXS' && $^O eq 'MSWin32') {
push @cmd, '--configure-args="EXPATLIBPATH=C:\dev\CitrusPerl\mingw64\lib EXPATINCPATH=C:\dev\CitrusPerl\mingw64\include"';
}
my $res = system @cmd;
if ($res != 0) { if ($res != 0) {
if (exists $prereqs{$module}) { if (exists $prereqs{$module}) {
push @missing_prereqs, $module; push @missing_prereqs, $module;