Created
December 6, 2012 20:42
-
-
Save tadzik/4228162 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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