Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created December 6, 2012 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/4228162 to your computer and use it in GitHub Desktop.
Save tadzik/4228162 to your computer and use it in GitHub Desktop.
use Panda::Common;
use Panda::Builder;
my $nqp = 'nqp';
my $parrot = 'parrot';
my $pbc_to_exe = 'pbc_to_exe';
my $executable = $*OS eq 'MSWin32' ?? 'perl6-debug.exe' !! 'perl6-debug';
class Build is Panda::Builder {
method build(Pies::Project $p) {
my $workdir = $.resources.workdir($p);
shell "$nqp --vmlibs=perl6_group,perl6_ops --target=pir "
~ "--output=perl6-debug.pir bin/perl6-debug.nqp";
shell "$parrot -o perl6-debug.pbc perl6-debug.pir";
shell "$pbc_to_exe --output=bin/$executable perl6-debug.pbc"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment