Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fetch libparrot.lib so that --gen-parrot works again
  • Loading branch information
FROGGS committed Sep 7, 2013
1 parent 6b5c98e commit 8ed7dad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/lib/NQP/Configure.pm
Expand Up @@ -2,6 +2,7 @@ package NQP::Configure;
use strict;
use warnings;
use Cwd;
use File::Copy qw(copy);

use base qw(Exporter);
our @EXPORT_OK = qw(sorry slurp system_or_die
Expand Down Expand Up @@ -359,6 +360,12 @@ sub gen_parrot {
system_or_die($make, 'install-dev');
chdir($startdir);

# That is a hack to get the import-lib in place. Parrot seems unpatchable because
# its static build shares the same libname as the import-lib.
if (-e "$startdir/parrot/libparrot.lib" && !-e "$startdir/install/bin/libparrot.lib") {
copy("$startdir/parrot/libparrot.lib", "$startdir/install/bin/libparrot.lib");
}

print "Parrot installed.\n";
return fill_template_text('@bindir@/parrot@exe@', %config);
}
Expand Down

0 comments on commit 8ed7dad

Please sign in to comment.