diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-11-12 16:35:36 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-11-12 16:35:36 +0400 |
commit | c8fb1ceac882bbabf0a04ee54594c5715759c6b6 (patch) | |
tree | 90fe4350d42ab479ae1fc8479a9c10287400b5f6 /Build.PL | |
parent | d0cbf563544b03d2373ed146e6b7f432d919a135 (diff) |
Add path to expat on Windows to benefit from faster AMF parsing
Diffstat (limited to 'Build.PL')
-rw-r--r-- | Build.PL | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,7 +100,11 @@ EOF my %modules = (%prereqs, %recommends); foreach my $module (sort keys %modules) { 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 (exists $prereqs{$module}) { push @missing_prereqs, $module; |